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