Merge "Re-organizes Contrail services to the correct roles"
[apex-tripleo-heat-templates.git] / puppet / services / nova-conductor.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Nova Conductor 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   NovaWorkers:
22     default: 0
23     description: Number of workers for Nova Conductor service.
24     type: number
25   MonitoringSubscriptionNovaConductor:
26     default: 'overcloud-nova-conductor'
27     type: string
28   NovaSchedulerLoggingSource:
29     type: json
30     default:
31       tag: openstack.nova.scheduler
32       path: /var/log/nova/nova-scheduler.log
33
34 conditions:
35   nova_workers_zero: {equals : [{get_param: NovaWorkers}, 0]}
36
37 resources:
38   NovaBase:
39     type: ./nova-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 Nova Conductor service.
48     value:
49       service_name: nova_conductor
50       monitoring_subscription: {get_param: MonitoringSubscriptionNovaConductor}
51       logging_source: {get_param: NovaSchedulerLoggingSource}
52       logging_groups:
53         - nova
54       config_settings:
55         map_merge:
56         - get_attr: [NovaBase, role_data, config_settings]
57         -
58           if:
59           - nova_workers_zero
60           - {}
61           - nova::conductor::workers: {get_param: NovaWorkers}
62       step_config: |
63         include tripleo::profile::base::nova::conductor