Merge "Containerize MySQL for HA"
[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   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   NovaPassword:
30     type: string
31     description: The password for the nova service and db account, used by nova-api.
32     hidden: true
33   NeutronPassword:
34     description: The password for the neutron service and db account, used by neutron agents.
35     type: string
36     hidden: true
37   ManilaPassword:
38     description: The password for the manila service account.
39     type: string
40     hidden: true
41   MonitoringSubscriptionManilaScheduler:
42     default: 'overcloud-manila-scheduler'
43     type: string
44
45 resources:
46   ManilaBase:
47     type: ./manila-base.yaml
48     properties:
49       ServiceNetMap: {get_param: ServiceNetMap}
50       DefaultPasswords: {get_param: DefaultPasswords}
51       EndpointMap: {get_param: EndpointMap}
52       RoleName: {get_param: RoleName}
53       RoleParameters: {get_param: RoleParameters}
54
55 outputs:
56   role_data:
57     description: Role data for the Manila-scheduler role.
58     value:
59       service_name: manila_scheduler
60       monitoring_subscription: {get_param: MonitoringSubscriptionManilaScheduler}
61       config_settings:
62         map_merge:
63           - get_attr: [ManilaBase, role_data, config_settings]
64           - manila::compute::nova::nova_admin_auth_url: {get_param: [EndpointMap, KeystoneInternal, uri]}
65             manila::compute::nova::nova_admin_password: {get_param: NovaPassword}
66             manila::compute::nova::nova_admin_tenant_name: 'service'
67             manila::network::neutron::neutron_url: {get_param: [EndpointMap, NeutronInternal, uri]}
68             manila::network::neutron::neutron_admin_auth_url: {get_param: [EndpointMap, NeutronAdmin, uri]}
69             manila::network::neutron::neutron_admin_password: {get_param: NeutronPassword}
70       step_config: |
71         include ::tripleo::profile::base::manila::scheduler