Merge "Open ports 443 and 80 on haproxy's firewall when horizon is standalone"
[apex-tripleo-heat-templates.git] / puppet / services / mistral-base.yaml
1 heat_template_version: pike
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   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29
30   Debug:
31     default: ''
32     description: Set to True to enable debugging on all services.
33     type: string
34   RabbitPassword:
35     description: The password for RabbitMQ
36     type: string
37     hidden: true
38   RabbitUserName:
39     default: guest
40     description: The username for RabbitMQ
41     type: string
42   RabbitClientUseSSL:
43     default: false
44     description: >
45         Rabbit client subscriber parameter to specify
46         an SSL connection to the RabbitMQ host.
47     type: string
48   RabbitClientPort:
49     default: 5672
50     description: Set rabbit subscriber port, change this if using SSL
51     type: number
52   MistralPassword:
53     description: The password for the Mistral service and db account, used by the Mistral services.
54     type: string
55     hidden: true
56   KeystoneRegion:
57     type: string
58     default: 'regionOne'
59     description: Keystone region for endpoint
60
61 outputs:
62   role_data:
63     description: Shared role data for the Mistral services.
64     value:
65       service_name: mistral_base
66       config_settings:
67         mistral::database_connection:
68           make_url:
69             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
70             username: mistral
71             password: {get_param: MistralPassword}
72             host: {get_param: [EndpointMap, MysqlInternal, host]}
73             path: /mistral
74             query:
75               read_default_file: /etc/my.cnf.d/tripleo.cnf
76               read_default_group: tripleo
77         mistral::rabbit_userid: {get_param: RabbitUserName}
78         mistral::rabbit_password: {get_param: RabbitPassword}
79         mistral::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
80         mistral::rabbit_port: {get_param: RabbitClientPort}
81         mistral::debug: {get_param: Debug}
82         mistral::keystone_password: {get_param: MistralPassword}
83         mistral::keystone_tenant: 'service'
84         mistral::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
85         mistral::keystone_ec2_uri:
86           list_join:
87           - ''
88           - - {get_param: [EndpointMap, KeystoneV3Internal, uri]}
89             - '/ec2tokens'
90         mistral::identity_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
91       service_config_settings:
92         keystone:
93           mistral::keystone::auth::tenant: 'service'
94           mistral::keystone::auth::public_url: {get_param: [EndpointMap, MistralPublic, uri]}
95           mistral::keystone::auth::internal_url: {get_param: [EndpointMap, MistralInternal, uri]}
96           mistral::keystone::auth::admin_url: {get_param: [EndpointMap, MistralAdmin, uri]}
97           mistral::keystone::auth::password: {get_param: MistralPassword}
98           mistral::keystone::auth::region: {get_param: KeystoneRegion}
99         mysql:
100           mistral::db::mysql::user: mistral
101           mistral::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
102           mistral::db::mysql::dbname: mistral
103           mistral::db::mysql::password: {get_param: MistralPassword}
104           mistral::db::mysql::allowed_hosts:
105             - '%'
106             - "%{hiera('mysql_bind_host')}"