Add 'service_name' to composable services
[apex-tripleo-heat-templates.git] / puppet / services / ironic-conductor.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Ironic conductor 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   IronicEnabledDrivers:
13     default: ['pxe_ipmitool', 'agent_ipmitool']
14     description: Enabled Ironic drivers
15     type: comma_delimited_list
16
17 resources:
18   IronicBase:
19     type: ./ironic-base.yaml
20     properties:
21       EndpointMap: {get_param: EndpointMap}
22
23 outputs:
24   role_data:
25     description: Role data for the Ironic conductor role.
26     value:
27       service_name: ironic-conductor
28       config_settings:
29         map_merge:
30           - get_attr: [IronicBase, role_data, config_settings]
31           - ironic::enabled_drivers: {get_param: IronicEnabledDrivers}
32             # Prevent tftp_server from defaulting to my_ip setting, which is
33             # controller VIP, not a real IP.
34             ironic::drivers::pxe::tftp_server: {get_input: ironic_api_network}
35       step_config: |
36         include ::tripleo::profile::base::ironic::conductor