Merge "Role Specific paramaeter support for neutron-ovs-dpdk-agent service"
[apex-tripleo-heat-templates.git] / puppet / services / manila-share.yaml
1 heat_template_version: pike
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   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   MonitoringSubscriptionManilaShare:
30     default: 'overcloud-manila-share'
31     type: string
32   ManilaPassword:
33     description: The password for the manila service account.
34     type: string
35     hidden: true
36
37 resources:
38   ManilaBase:
39     type: ./manila-base.yaml
40     properties:
41       ServiceNetMap: {get_param: ServiceNetMap}
42       DefaultPasswords: {get_param: DefaultPasswords}
43       EndpointMap: {get_param: EndpointMap}
44       RoleName: {get_param: RoleName}
45       RoleParameters: {get_param: RoleParameters}
46
47 outputs:
48   role_data:
49     description: Role data for the Manila-share role.
50     value:
51       service_name: manila_share
52       monitoring_subscription: {get_param: MonitoringSubscriptionManilaShare}
53       config_settings:
54         map_merge:
55           - get_attr: [ManilaBase, role_data, config_settings]
56           - manila::volume::cinder::cinder_admin_tenant_name: 'service'
57             manila::keystone::authtoken::password: {get_param: ManilaPassword}
58             manila::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
59             manila::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
60             manila::keystone::authtoken::project_name: 'service'
61       service_config_settings:
62         get_attr: [ManilaBase, role_data, service_config_settings]
63       step_config: |
64         include ::tripleo::profile::base::manila::share