e9b4da6f492380f6bd2b3416ef40f7e6437ed1d7
[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   IronicIPXEEnabled:
26     default: true
27     description: Whether to use iPXE instead of PXE for deployment.
28     type: boolean
29   IronicIPXEPort:
30     default: 8088
31     description: Port to use for serving images when iPXE is used.
32     type: string
33   MonitoringSubscriptionIronicConductor:
34     default: 'overcloud-ironic-conductor'
35     type: string
36
37 resources:
38   IronicBase:
39     type: ./ironic-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 Ironic conductor role.
48     value:
49       service_name: ironic_conductor
50       monitoring_subscription: {get_param: MonitoringSubscriptionIronicConductor}
51       config_settings:
52         map_merge:
53           - get_attr: [IronicBase, role_data, config_settings]
54           # FIXME: I have no idea why neutron_url is in "api" manifest
55           - ironic::api::neutron_url: {get_param: [EndpointMap, NeutronInternal, uri]}
56             ironic::conductor::api_url: {get_param: [EndpointMap, IronicInternal, uri_no_suffix]}
57             ironic::conductor::enabled_drivers: {get_param: IronicEnabledDrivers}
58             # We need an endpoint containing a real IP, not a VIP here
59             ironic_conductor_http_host: {get_param: [ServiceNetMap, IronicNetwork]}
60             ironic::conductor::http_url:
61               list_join:
62                 - ''
63                 - - 'http://'
64                   - '%{hiera("ironic_conductor_http_host")}:'
65                   - {get_param: IronicIPXEPort}
66             ironic::drivers::pxe::ipxe_enabled: {get_param: IronicIPXEEnabled}
67             ironic::glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}
68             # NOTE: bind IP is found in Heat replacing the network name with the
69             # local node IP for the given network; replacement examples
70             # (eg. for internal_api):
71             # internal_api -> IP
72             # internal_api_uri -> [IP]
73             # internal_api_subnet - > IP/CIDR
74             ironic::drivers::pxe::tftp_server: {get_param: [ServiceNetMap, IronicNetwork]}
75             # NOTE(dtantsur): UEFI only works with iPXE currently for us
76             ironic::drivers::pxe::uefi_pxe_config_template: '$pybasedir/drivers/modules/ipxe_config.template'
77             ironic::drivers::pxe::uefi_pxe_bootfile_name: 'ipxe.efi'
78             tripleo.ironic_conductor.firewall_rules:
79               '134 ironic conductor TFTP':
80                 dport: 69
81                 proto: udp
82               '135 ironic conductor HTTP':
83                 dport: {get_param: IronicIPXEPort}
84             # NOTE(dtantsur): the my_ip parameter is heavily overloaded in
85             # ironic. It's used as a default value for e.g. TFTP server IP,
86             # glance and neutron endpoints, virtual console IP. We override
87             # the TFTP server IP in ironic-conductor.yaml as it should not be
88             # the VIP, but rather a real IP of the host.
89             ironic::my_ip: {get_param: [ServiceNetMap, IronicNetwork]}
90             ironic::pxe::common::http_port: {get_param: IronicIPXEPort}
91
92       step_config: |
93         include ::tripleo::profile::base::ironic::conductor