Merge "Modify sriov_numvfs config from puppet-neutron to tripleo"
[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   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   IronicEnabledDrivers:
22     default: ['pxe_ipmitool', 'agent_ipmitool']
23     description: Enabled Ironic drivers
24     type: comma_delimited_list
25
26 resources:
27   IronicBase:
28     type: ./ironic-base.yaml
29     properties:
30       ServiceNetMap: {get_param: ServiceNetMap}
31       DefaultPasswords: {get_param: DefaultPasswords}
32       EndpointMap: {get_param: EndpointMap}
33
34 outputs:
35   role_data:
36     description: Role data for the Ironic conductor role.
37     value:
38       service_name: ironic_conductor
39       config_settings:
40         map_merge:
41           - get_attr: [IronicBase, role_data, config_settings]
42           # FIXME: I have no idea why neutron_url is in "api" manifest
43           - ironic::api::neutron_url: {get_param: [EndpointMap, NeutronInternal, uri]}
44             ironic::conductor::api_url: {get_param: [EndpointMap, IronicInternal, uri_no_suffix]}
45             ironic::glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}
46             ironic::enabled_drivers: {get_param: IronicEnabledDrivers}
47             # NOTE: bind IP is found in Heat replacing the network name with the
48             # local node IP for the given network; replacement examples
49             # (eg. for internal_api):
50             # internal_api -> IP
51             # internal_api_uri -> [IP]
52             # internal_api_subnet - > IP/CIDR
53             ironic::drivers::pxe::tftp_server: {get_param: [ServiceNetMap, IronicNetwork]}
54             tripleo.ironic_conductor.firewall_rules:
55               '134 ironic conductor TFTP':
56                 dport: 69
57                 proto: udp
58             # NOTE(dtantsur): the my_ip parameter is heavily overloaded in
59             # ironic. It's used as a default value for e.g. TFTP server IP,
60             # glance and neutron endpoints, virtual console IP. We override
61             # the TFTP server IP in ironic-conductor.yaml as it should not be
62             # the VIP, but rather a real IP of the host.
63             ironic::my_ip: {get_param: [ServiceNetMap, IronicNetwork]}
64
65       step_config: |
66         include ::tripleo::profile::base::ironic::conductor