Change heat and mistral to use v3/ec2tokens url
[apex-tripleo-heat-templates.git] / puppet / services / mistral-base.yaml
1 heat_template_version: ocata
2
3 description: >
4   Openstack Mistral base service. Shared for all Mistral services.
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
22   Debug:
23     default: ''
24     description: Set to True to enable debugging on all services.
25     type: string
26   RabbitPassword:
27     description: The password for RabbitMQ
28     type: string
29     hidden: true
30   RabbitUserName:
31     default: guest
32     description: The username for RabbitMQ
33     type: string
34   RabbitClientUseSSL:
35     default: false
36     description: >
37         Rabbit client subscriber parameter to specify
38         an SSL connection to the RabbitMQ host.
39     type: string
40   RabbitClientPort:
41     default: 5672
42     description: Set rabbit subscriber port, change this if using SSL
43     type: number
44   MistralPassword:
45     description: The password for the Mistral service and db account, used by the Mistral services.
46     type: string
47     hidden: true
48   KeystoneRegion:
49     type: string
50     default: 'regionOne'
51     description: Keystone region for endpoint
52
53 outputs:
54   role_data:
55     description: Shared role data for the Mistral services.
56     value:
57       service_name: mistral_base
58       config_settings:
59         mistral::database_connection:
60           list_join:
61             - ''
62             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
63               - '://mistral:'
64               - {get_param: MistralPassword}
65               - '@'
66               - {get_param: [EndpointMap, MysqlInternal, host]}
67               - '/mistral'
68               - '?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'
69         mistral::rabbit_userid: {get_param: RabbitUserName}
70         mistral::rabbit_password: {get_param: RabbitPassword}
71         mistral::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
72         mistral::rabbit_port: {get_param: RabbitClientPort}
73         mistral::debug: {get_param: Debug}
74         mistral::keystone_password: {get_param: MistralPassword}
75         mistral::keystone_tenant: 'service'
76         mistral::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
77         mistral::keystone_ec2_uri:
78           list_join:
79           - ''
80           - - {get_param: [EndpointMap, KeystoneV3Internal, uri]}
81             - '/ec2tokens'
82         mistral::identity_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
83       service_config_settings:
84         keystone:
85           mistral::keystone::auth::tenant: 'service'
86           mistral::keystone::auth::public_url: {get_param: [EndpointMap, MistralPublic, uri]}
87           mistral::keystone::auth::internal_url: {get_param: [EndpointMap, MistralInternal, uri]}
88           mistral::keystone::auth::admin_url: {get_param: [EndpointMap, MistralAdmin, uri]}
89           mistral::keystone::auth::password: {get_param: MistralPassword}
90           mistral::keystone::auth::region: {get_param: KeystoneRegion}
91         mysql:
92           mistral::db::mysql::user: mistral
93           mistral::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
94           mistral::db::mysql::dbname: mistral
95           mistral::db::mysql::password: {get_param: MistralPassword}
96           mistral::db::mysql::allowed_hosts:
97             - '%'
98             - "%{hiera('mysql_bind_host')}"