Pass ServiceNetMap to 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   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   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   IronicEnabledDrivers:
19     default: ['pxe_ipmitool', 'agent_ipmitool']
20     description: Enabled Ironic drivers
21     type: comma_delimited_list
22
23 resources:
24   IronicBase:
25     type: ./ironic-base.yaml
26     properties:
27       ServiceNetMap: {get_param: ServiceNetMap}
28       EndpointMap: {get_param: EndpointMap}
29
30 outputs:
31   role_data:
32     description: Role data for the Ironic conductor role.
33     value:
34       service_name: ironic_conductor
35       config_settings:
36         map_merge:
37           - get_attr: [IronicBase, role_data, config_settings]
38           # FIXME: I have no idea why neutron_url is in "api" manifest
39           - ironic::api::neutron_url: {get_param: [EndpointMap, NeutronInternal, uri]}
40             ironic::glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}
41             ironic::enabled_drivers: {get_param: IronicEnabledDrivers}
42             # Prevent tftp_server from defaulting to my_ip setting, which is
43             # controller VIP, not a real IP.
44             ironic::drivers::pxe::tftp_server: {get_input: ironic_api_network}
45       step_config: |
46         include ::tripleo::profile::base::ironic::conductor