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