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