Change flat network name for nosdn fdio scenario
[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   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33
34   Debug:
35     default: ''
36     description: Set to True to enable debugging on all services.
37     type: string
38   MistralDebug:
39     default: ''
40     description: Set to True to enable debugging Mistral services.
41     type: string
42   RabbitPassword:
43     description: The password for RabbitMQ
44     type: string
45     hidden: true
46   RabbitUserName:
47     default: guest
48     description: The username for RabbitMQ
49     type: string
50   RabbitClientUseSSL:
51     default: false
52     description: >
53         Rabbit client subscriber parameter to specify
54         an SSL connection to the RabbitMQ host.
55     type: string
56   RabbitClientPort:
57     default: 5672
58     description: Set rabbit subscriber port, change this if using SSL
59     type: number
60   MistralPassword:
61     description: The password for the Mistral service and db account, used by the Mistral services.
62     type: string
63     hidden: true
64   KeystoneRegion:
65     type: string
66     default: 'regionOne'
67     description: Keystone region for endpoint
68   NotificationDriver:
69     type: string
70     default: 'messagingv2'
71     description: Driver or drivers to handle sending notifications.
72     constraints:
73       - allowed_values: [ 'messagingv2', 'noop' ]
74
75 conditions:
76   service_debug_unset: {equals : [{get_param: MistralDebug}, '']}
77
78 outputs:
79   role_data:
80     description: Shared role data for the Mistral services.
81     value:
82       service_name: mistral_base
83       config_settings:
84         mistral::database_connection:
85           make_url:
86             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
87             username: mistral
88             password: {get_param: MistralPassword}
89             host: {get_param: [EndpointMap, MysqlInternal, host]}
90             path: /mistral
91             query:
92               read_default_file: /etc/my.cnf.d/tripleo.cnf
93               read_default_group: tripleo
94         mistral::notification_driver: {get_param: NotificationDriver}
95         mistral::rabbit_userid: {get_param: RabbitUserName}
96         mistral::rabbit_password: {get_param: RabbitPassword}
97         mistral::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
98         mistral::rabbit_port: {get_param: RabbitClientPort}
99         mistral::debug:
100           if:
101           - service_debug_unset
102           - {get_param: Debug }
103           - {get_param: MistralDebug }
104         mistral::keystone_password: {get_param: MistralPassword}
105         mistral::keystone_tenant: 'service'
106         mistral::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
107         mistral::keystone_ec2_uri:
108           list_join:
109           - ''
110           - - {get_param: [EndpointMap, KeystoneV3Internal, uri]}
111             - '/ec2tokens'
112         mistral::identity_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
113       service_config_settings:
114         keystone:
115           mistral::keystone::auth::tenant: 'service'
116           mistral::keystone::auth::public_url: {get_param: [EndpointMap, MistralPublic, uri]}
117           mistral::keystone::auth::internal_url: {get_param: [EndpointMap, MistralInternal, uri]}
118           mistral::keystone::auth::admin_url: {get_param: [EndpointMap, MistralAdmin, uri]}
119           mistral::keystone::auth::password: {get_param: MistralPassword}
120           mistral::keystone::auth::region: {get_param: KeystoneRegion}
121         mysql:
122           mistral::db::mysql::user: mistral
123           mistral::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
124           mistral::db::mysql::dbname: mistral
125           mistral::db::mysql::password: {get_param: MistralPassword}
126           mistral::db::mysql::allowed_hosts:
127             - '%'
128             - "%{hiera('mysql_bind_host')}"