Add 'service_name' to composable services
[apex-tripleo-heat-templates.git] / puppet / services / ironic-base.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Ironic services 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   Debug:
13     default: ''
14     description: Set to True to enable debugging on all services.
15     type: string
16   IronicPassword:
17     description: The password for the Ironic service and db account, used by the Ironic services
18     type: string
19     hidden: true
20   RabbitUserName:
21     default: guest
22     description: The username for RabbitMQ
23     type: string
24   RabbitPassword:
25     description: The password for RabbitMQ
26     type: string
27     hidden: true
28   RabbitClientPort:
29     default: 5672
30     description: Set rabbit subscriber port, change this if using SSL
31     type: number
32   RabbitClientUseSSL:
33     default: false
34     description: >
35         Rabbit client subscriber parameter to specify
36         an SSL connection to the RabbitMQ host.
37     type: string
38
39 outputs:
40   role_data:
41     description: Role data for the Ironic role.
42     value:
43       service_name: ironic-base
44       config_settings:
45         ironic::database_connection:
46           list_join:
47             - ''
48             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
49               - '://ironic:'
50               - {get_param: IronicPassword}
51               - '@'
52               - {get_param: [EndpointMap, MysqlInternal, host]}
53               - '/ironic'
54         ironic::admin_tenant_name: 'service'
55         ironic::debug: {get_param: Debug}
56         ironic::rabbit_userid: {get_param: RabbitUserName}
57         ironic::rabbit_password: {get_param: RabbitPassword}
58         ironic::rabbit_port: {get_param: RabbitClientPort}
59         ironic::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
60         ironic::db::mysql::password: {get_param: IronicPassword}
61         ironic::db::mysql::user: ironic
62         ironic::db::mysql::host: {get_param: [EndpointMap, MysqlNoBracketsInternal, host]}
63         ironic::db::mysql::dbname: ironic
64         ironic::db::mysql::allowed_hosts:
65           - '%'
66           - "%{hiera('mysql_bind_host')}"
67
68         ironic::keystone::auth::tenant: 'service'
69       step_config: |
70         include ::tripleo::profile::base::ironic