5ab03fcb44d89f051f70e73f598c0a66cdaad357
[apex-tripleo-heat-templates.git] / puppet / services / ironic-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Ironic API 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   IronicPassword:
13     description: The password for the Ironic service and db account, used by the Ironic services
14     type: string
15     hidden: true
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 API role.
26     value:
27       config_settings:
28         map_merge:
29           - get_attr: [IronicBase, role_data, config_settings]
30           # NOTE(dtantsur): the my_ip parameter is heavily overloaded in
31           # ironic. It's used as a default value for e.g. TFTP server IP,
32           # glance and neutron endpoints, virtual console IP. We override
33           # the TFTP server IP in ironic-conductor.yaml as it should not be
34           # the VIP, but rather a real IP of the controller.
35           - ironic::my_ip: {get_param: [EndpointMap, MysqlInternal, host]}
36             ironic::api::admin_password: {get_param: IronicPassword}
37             ironic::keystone::auth::public_url: {get_param: [EndpointMap, IronicPublic, uri]}
38             ironic::keystone::auth::internal_url: {get_param: [EndpointMap, IronicInternal, uri]}
39             ironic::keystone::auth::admin_url: {get_param: [EndpointMap, IronicAdmin, uri]}
40             ironic::keystone::auth::password: {get_param: IronicPassword }
41       step_config: |
42         include ::tripleo::profile::base::ironic::api