Merge "Make Rabbit parameters consistent"
[apex-tripleo-heat-templates.git] / puppet / services / aodh-base.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Aodh service configured with Puppet
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   AodhPassword:
30     description: The password for the aodh services.
31     type: string
32     hidden: true
33   RedisPassword:
34     description: The password for the redis service account.
35     type: string
36     hidden: true
37   RabbitPassword:
38     description: The password for RabbitMQ
39     type: string
40     hidden: true
41   RabbitUserName:
42     default: guest
43     description: The username for RabbitMQ
44     type: string
45   RabbitClientUseSSL:
46     default: false
47     description: >
48         Rabbit client subscriber parameter to specify
49         an SSL connection to the RabbitMQ host.
50     type: string
51   RabbitClientPort:
52     default: 5672
53     description: Set rabbit subscriber port, change this if using SSL
54     type: number
55   Debug:
56     default: ''
57     description: Set to True to enable debugging on all services.
58     type: string
59   AodhDebug:
60     default: ''
61     description: Set to True to enable debugging Aodh services.
62     type: string
63   KeystoneRegion:
64     type: string
65     default: 'regionOne'
66     description: Keystone region for endpoint
67   NotificationDriver:
68     type: string
69     default: 'messagingv2'
70     description: Driver or drivers to handle sending notifications.
71     constraints:
72       - allowed_values: [ 'messagingv2', 'noop' ]
73
74 conditions:
75   service_debug_unset: {equals : [{get_param: AodhDebug}, '']}
76
77 outputs:
78   role_data:
79     description: Role data for the Aodh role.
80     value:
81       service_name: aodh_base
82       config_settings:
83         aodh_redis_password: {get_param: RedisPassword}
84         aodh::db::database_connection:
85           make_url:
86             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
87             username: aodh
88             password: {get_param: AodhPassword}
89             host: {get_param: [EndpointMap, MysqlInternal, host]}
90             path: /aodh
91             query:
92               read_default_file: /etc/my.cnf.d/tripleo.cnf
93               read_default_group: tripleo
94         aodh::debug:
95           if:
96           - service_debug_unset
97           - {get_param: Debug }
98           - {get_param: AodhDebug }
99         aodh::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
100         aodh::notification_driver: {get_param: NotificationDriver}
101         aodh::rabbit_userid: {get_param: RabbitUserName}
102         aodh::rabbit_password: {get_param: RabbitPassword}
103         aodh::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
104         aodh::rabbit_port: {get_param: RabbitClientPort}
105         aodh::keystone::authtoken::project_name: 'service'
106         aodh::keystone::authtoken::user_domain_name: 'Default'
107         aodh::keystone::authtoken::project_domain_name: 'Default'
108         aodh::keystone::authtoken::password: {get_param: AodhPassword}
109         aodh::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
110         aodh::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
111         aodh::auth::auth_password: {get_param: AodhPassword}
112         aodh::auth::auth_region: {get_param: KeystoneRegion}
113         aodh::auth::auth_tenant_name: 'service'
114       service_config_settings:
115         keystone:
116           aodh::keystone::auth::public_url: {get_param: [EndpointMap, AodhPublic, uri]}
117           aodh::keystone::auth::internal_url: {get_param: [EndpointMap, AodhInternal, uri]}
118           aodh::keystone::auth::admin_url: {get_param: [EndpointMap, AodhAdmin, uri]}
119           aodh::keystone::auth::password: {get_param: AodhPassword}
120           aodh::keystone::auth::region: {get_param: KeystoneRegion}
121           aodh::keystone::auth::tenant: 'service'
122         mysql:
123           aodh::db::mysql::user: aodh
124           aodh::db::mysql::password: {get_param: AodhPassword}
125           aodh::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
126           aodh::db::mysql::dbname: aodh
127           aodh::db::mysql::allowed_hosts:
128             - '%'
129             - "%{hiera('mysql_bind_host')}"