6f369f74f968ea17f7404302550fc04307a407d8
[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       service_name: ironic-api
28       config_settings:
29         map_merge:
30           - get_attr: [IronicBase, role_data, config_settings]
31           # NOTE(dtantsur): the my_ip parameter is heavily overloaded in
32           # ironic. It's used as a default value for e.g. TFTP server IP,
33           # glance and neutron endpoints, virtual console IP. We override
34           # the TFTP server IP in ironic-conductor.yaml as it should not be
35           # the VIP, but rather a real IP of the controller.
36           - ironic::my_ip: {get_param: [EndpointMap, MysqlInternal, host]}
37             ironic::api::admin_password: {get_param: IronicPassword}
38             ironic::keystone::auth::public_url: {get_param: [EndpointMap, IronicPublic, uri]}
39             ironic::keystone::auth::internal_url: {get_param: [EndpointMap, IronicInternal, uri]}
40             ironic::keystone::auth::admin_url: {get_param: [EndpointMap, IronicAdmin, uri]}
41             ironic::keystone::auth::password: {get_param: IronicPassword }
42       step_config: |
43         include ::tripleo::profile::base::ironic::api