6ac0d2cfbbdde4de218012036f9a216205d09ada
[apex-tripleo-heat-templates.git] / puppet / services / manila-share.yaml
1 heat_template_version: ocata
2
3 description: >
4   Manila-share service configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   MonitoringSubscriptionManilaShare:
22     default: 'overcloud-manila-share'
23     type: string
24   ManilaPassword:
25     description: The password for the manila service account.
26     type: string
27     hidden: true
28
29 resources:
30   ManilaBase:
31     type: ./manila-base.yaml
32     properties:
33       ServiceNetMap: {get_param: ServiceNetMap}
34       DefaultPasswords: {get_param: DefaultPasswords}
35       EndpointMap: {get_param: EndpointMap}
36
37 outputs:
38   role_data:
39     description: Role data for the Manila-share role.
40     value:
41       service_name: manila_share
42       monitoring_subscription: {get_param: MonitoringSubscriptionManilaShare}
43       config_settings:
44         map_merge:
45           - get_attr: [ManilaBase, role_data, config_settings]
46           - manila::volume::cinder::cinder_admin_tenant_name: 'service'
47             manila::keystone::authtoken::password: {get_param: ManilaPassword}
48             manila::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
49             manila::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
50             manila::keystone::authtoken::project_name: 'service'
51       service_config_settings:
52         get_attr: [ManilaBase, role_data, service_config_settings]
53       step_config: |
54         include ::tripleo::profile::base::manila::share