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