Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / manila-scheduler.yaml
1 heat_template_version: pike
2
3 description: >
4   Manila-scheduler 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   NovaPassword:
34     type: string
35     description: The password for the nova service and db account
36     hidden: true
37   NeutronPassword:
38     description: The password for the neutron service and db account, used by neutron agents.
39     type: string
40     hidden: true
41   ManilaPassword:
42     description: The password for the manila service account.
43     type: string
44     hidden: true
45   MonitoringSubscriptionManilaScheduler:
46     default: 'overcloud-manila-scheduler'
47     type: string
48
49 resources:
50   ManilaBase:
51     type: ./manila-base.yaml
52     properties:
53       ServiceData: {get_param: ServiceData}
54       ServiceNetMap: {get_param: ServiceNetMap}
55       DefaultPasswords: {get_param: DefaultPasswords}
56       EndpointMap: {get_param: EndpointMap}
57       RoleName: {get_param: RoleName}
58       RoleParameters: {get_param: RoleParameters}
59
60 outputs:
61   role_data:
62     description: Role data for the Manila-scheduler role.
63     value:
64       service_name: manila_scheduler
65       monitoring_subscription: {get_param: MonitoringSubscriptionManilaScheduler}
66       config_settings:
67         map_merge:
68           - get_attr: [ManilaBase, role_data, config_settings]
69           - manila::compute::nova::nova_admin_auth_url: {get_param: [EndpointMap, KeystoneInternal, uri]}
70             manila::compute::nova::nova_admin_password: {get_param: NovaPassword}
71             manila::compute::nova::nova_admin_tenant_name: 'service'
72             manila::network::neutron::neutron_url: {get_param: [EndpointMap, NeutronInternal, uri]}
73             manila::network::neutron::neutron_admin_auth_url: {get_param: [EndpointMap, KeystoneInternal, uri]}
74             manila::network::neutron::neutron_admin_password: {get_param: NeutronPassword}
75       step_config: |
76         include ::tripleo::profile::base::manila::scheduler