a049adfb1834f20ca380d73f4633bd822e3a9c8d
[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   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   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   IronicPassword:
19     description: The password for the Ironic service and db account, used by the Ironic services
20     type: string
21     hidden: true
22
23 resources:
24   IronicBase:
25     type: ./ironic-base.yaml
26     properties:
27       ServiceNetMap: {get_param: ServiceNetMap}
28       EndpointMap: {get_param: EndpointMap}
29
30 outputs:
31   role_data:
32     description: Role data for the Ironic API role.
33     value:
34       service_name: ironic_api
35       config_settings:
36         map_merge:
37           - get_attr: [IronicBase, role_data, config_settings]
38           # NOTE(dtantsur): the my_ip parameter is heavily overloaded in
39           # ironic. It's used as a default value for e.g. TFTP server IP,
40           # glance and neutron endpoints, virtual console IP. We override
41           # the TFTP server IP in ironic-conductor.yaml as it should not be
42           # the VIP, but rather a real IP of the controller.
43           - ironic::my_ip: {get_param: [EndpointMap, MysqlInternal, host]}
44             ironic::api::admin_password: {get_param: IronicPassword}
45             ironic::api::admin_tenant_name: 'service'
46             ironic::api::admin_user: 'ironic'
47             ironic::api::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
48             ironic::api::identity_uri: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
49             ironic::api::port: {get_param: [EndpointMap, IronicInternal, port]}
50             # This is used to build links in responses
51             ironic::api::public_endpoint: {get_param: [EndpointMap, IronicPublic, uri_no_suffix]}
52             ironic::keystone::auth::admin_url: {get_param: [EndpointMap, IronicAdmin, uri]}
53             ironic::keystone::auth::internal_url: {get_param: [EndpointMap, IronicInternal, uri]}
54             ironic::keystone::auth::public_url: {get_param: [EndpointMap, IronicPublic, uri]}
55             ironic::keystone::auth::auth_name: 'ironic'
56             ironic::keystone::auth::password: {get_param: IronicPassword }
57             ironic::keystone::auth::tenant: 'service'
58       step_config: |
59         include ::tripleo::profile::base::ironic::api