Change flat network name for nosdn fdio scenario
[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   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   MonitoringSubscriptionManilaShare:
34     default: 'overcloud-manila-share'
35     type: string
36   ManilaPassword:
37     description: The password for the manila service account.
38     type: string
39     hidden: true
40
41 resources:
42   ManilaBase:
43     type: ./manila-base.yaml
44     properties:
45       ServiceData: {get_param: ServiceData}
46       ServiceNetMap: {get_param: ServiceNetMap}
47       DefaultPasswords: {get_param: DefaultPasswords}
48       EndpointMap: {get_param: EndpointMap}
49       RoleName: {get_param: RoleName}
50       RoleParameters: {get_param: RoleParameters}
51
52 outputs:
53   role_data:
54     description: Role data for the Manila-share role.
55     value:
56       service_name: manila_share
57       monitoring_subscription: {get_param: MonitoringSubscriptionManilaShare}
58       config_settings:
59         map_merge:
60           - get_attr: [ManilaBase, role_data, config_settings]
61           - manila::volume::cinder::cinder_admin_tenant_name: 'service'
62             manila::keystone::authtoken::password: {get_param: ManilaPassword}
63             manila::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
64             manila::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
65             manila::keystone::authtoken::project_name: 'service'
66       service_config_settings:
67         get_attr: [ManilaBase, role_data, service_config_settings]
68       step_config: |
69         include ::tripleo::profile::base::manila::share