696e4f246c3825ddad38cf5315b56a867e73d490
[apex-tripleo-heat-templates.git] / puppet / services / manila-scheduler.yaml
1 heat_template_version: 2016-04-08
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   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   NovaPassword:
19     type: string
20     description: The password for the nova service and db account, used by nova-api.
21     hidden: true
22   NeutronPassword:
23     description: The password for the neutron service and db account, used by neutron agents.
24     type: string
25     hidden: true
26   ManilaPassword:
27     description: The password for the manila service account.
28     type: string
29     hidden: true
30
31 resources:
32   ManilaBase:
33     type: ./manila-base.yaml
34     properties:
35       ServiceNetMap: {get_param: ServiceNetMap}
36       EndpointMap: {get_param: EndpointMap}
37
38 outputs:
39   role_data:
40     description: Role data for the Manila-scheduler role.
41     value:
42       service_name: manila_scheduler
43       config_settings:
44         map_merge:
45           - get_attr: [ManilaBase, role_data, config_settings]
46           - manila::compute::nova::nova_admin_auth_url: {get_param: [EndpointMap, KeystoneInternal, uri]}
47             manila::compute::nova::nova_admin_password: {get_param: NovaPassword}
48             manila::compute::nova::nova_admin_tenant_name: 'service'
49             manila::db::mysql::password: {get_param: ManilaPassword}
50             manila::network::neutron::neutron_url: {get_param: [EndpointMap, NeutronInternal, uri]}
51             manila::network::neutron::neutron_admin_auth_url: {get_param: [EndpointMap, NeutronAdmin, uri]}
52             manila::network::neutron::neutron_admin_password: {get_param: NeutronPassword}
53             manila::sql_connection:
54                 list_join:
55                 - ''
56                 - - {get_param: [EndpointMap, MysqlInternal, protocol]}
57                   - '://manila:'
58                   - {get_param: ManilaPassword}
59                   - '@'
60                   - {get_param: [EndpointMap, MysqlInternal, host]}
61                   - '/manila'
62       step_config: |
63         include ::tripleo::profile::base::manila::scheduler
64