Merge "Use provided qemu.conf in libvirt container"
[apex-tripleo-heat-templates.git] / puppet / services / manila-scheduler.yaml
1 heat_template_version: ocata
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   MonitoringSubscriptionManilaScheduler:
34     default: 'overcloud-manila-scheduler'
35     type: string
36
37 resources:
38   ManilaBase:
39     type: ./manila-base.yaml
40     properties:
41       ServiceNetMap: {get_param: ServiceNetMap}
42       DefaultPasswords: {get_param: DefaultPasswords}
43       EndpointMap: {get_param: EndpointMap}
44
45 outputs:
46   role_data:
47     description: Role data for the Manila-scheduler role.
48     value:
49       service_name: manila_scheduler
50       monitoring_subscription: {get_param: MonitoringSubscriptionManilaScheduler}
51       config_settings:
52         map_merge:
53           - get_attr: [ManilaBase, role_data, config_settings]
54           - manila::compute::nova::nova_admin_auth_url: {get_param: [EndpointMap, KeystoneInternal, uri]}
55             manila::compute::nova::nova_admin_password: {get_param: NovaPassword}
56             manila::compute::nova::nova_admin_tenant_name: 'service'
57             manila::network::neutron::neutron_url: {get_param: [EndpointMap, NeutronInternal, uri]}
58             manila::network::neutron::neutron_admin_auth_url: {get_param: [EndpointMap, NeutronAdmin, uri]}
59             manila::network::neutron::neutron_admin_password: {get_param: NeutronPassword}
60       step_config: |
61         include ::tripleo::profile::base::manila::scheduler