Merge "Use Deployment actions for blacklist"
[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   MistralDebug:
35     default: ''
36     description: Set to True to enable debugging Mistral services.
37     type: string
38   RabbitPassword:
39     description: The password for RabbitMQ
40     type: string
41     hidden: true
42   RabbitUserName:
43     default: guest
44     description: The username for RabbitMQ
45     type: string
46   RabbitClientUseSSL:
47     default: false
48     description: >
49         Rabbit client subscriber parameter to specify
50         an SSL connection to the RabbitMQ host.
51     type: string
52   RabbitClientPort:
53     default: 5672
54     description: Set rabbit subscriber port, change this if using SSL
55     type: number
56   MistralPassword:
57     description: The password for the Mistral service and db account, used by the Mistral services.
58     type: string
59     hidden: true
60   KeystoneRegion:
61     type: string
62     default: 'regionOne'
63     description: Keystone region for endpoint
64
65 conditions:
66   service_debug_unset: {equals : [{get_param: MistralDebug}, '']}
67
68 outputs:
69   role_data:
70     description: Shared role data for the Mistral services.
71     value:
72       service_name: mistral_base
73       config_settings:
74         mistral::database_connection:
75           make_url:
76             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
77             username: mistral
78             password: {get_param: MistralPassword}
79             host: {get_param: [EndpointMap, MysqlInternal, host]}
80             path: /mistral
81             query:
82               read_default_file: /etc/my.cnf.d/tripleo.cnf
83               read_default_group: tripleo
84         mistral::rabbit_userid: {get_param: RabbitUserName}
85         mistral::rabbit_password: {get_param: RabbitPassword}
86         mistral::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
87         mistral::rabbit_port: {get_param: RabbitClientPort}
88         mistral::debug:
89           if:
90           - service_debug_unset
91           - {get_param: Debug }
92           - {get_param: MistralDebug }
93         mistral::keystone_password: {get_param: MistralPassword}
94         mistral::keystone_tenant: 'service'
95         mistral::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
96         mistral::keystone_ec2_uri:
97           list_join:
98           - ''
99           - - {get_param: [EndpointMap, KeystoneV3Internal, uri]}
100             - '/ec2tokens'
101         mistral::identity_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
102       service_config_settings:
103         keystone:
104           mistral::keystone::auth::tenant: 'service'
105           mistral::keystone::auth::public_url: {get_param: [EndpointMap, MistralPublic, uri]}
106           mistral::keystone::auth::internal_url: {get_param: [EndpointMap, MistralInternal, uri]}
107           mistral::keystone::auth::admin_url: {get_param: [EndpointMap, MistralAdmin, uri]}
108           mistral::keystone::auth::password: {get_param: MistralPassword}
109           mistral::keystone::auth::region: {get_param: KeystoneRegion}
110         mysql:
111           mistral::db::mysql::user: mistral
112           mistral::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
113           mistral::db::mysql::dbname: mistral
114           mistral::db::mysql::password: {get_param: MistralPassword}
115           mistral::db::mysql::allowed_hosts:
116             - '%'
117             - "%{hiera('mysql_bind_host')}"