Merge "Use list_concat for metadata_settings for haproxy"
[apex-tripleo-heat-templates.git] / puppet / services / aodh-base.yaml
1 heat_template_version: ocata
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   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   AodhPassword:
22     description: The password for the aodh services.
23     type: string
24     hidden: true
25   RedisPassword:
26     description: The password for the redis service account.
27     type: string
28     hidden: true
29   RabbitPassword:
30     description: The password for RabbitMQ
31     type: string
32     hidden: true
33   RabbitUserName:
34     default: guest
35     description: The username for RabbitMQ
36     type: string
37   RabbitClientUseSSL:
38     default: false
39     description: >
40         Rabbit client subscriber parameter to specify
41         an SSL connection to the RabbitMQ host.
42     type: string
43   RabbitClientPort:
44     default: 5672
45     description: Set rabbit subscriber port, change this if using SSL
46     type: number
47   Debug:
48     default: ''
49     description: Set to True to enable debugging on all services.
50     type: string
51   KeystoneRegion:
52     type: string
53     default: 'regionOne'
54     description: Keystone region for endpoint
55
56 outputs:
57   role_data:
58     description: Role data for the Aodh role.
59     value:
60       service_name: aodh_base
61       config_settings:
62         aodh_redis_password: {get_param: RedisPassword}
63         aodh::db::database_connection:
64           list_join:
65             - ''
66             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
67               - '://aodh:'
68               - {get_param: AodhPassword}
69               - '@'
70               - {get_param: [EndpointMap, MysqlInternal, host]}
71               - '/aodh'
72               - '?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'
73         aodh::debug: {get_param: Debug}
74         aodh::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
75         aodh::rabbit_userid: {get_param: RabbitUserName}
76         aodh::rabbit_password: {get_param: RabbitPassword}
77         aodh::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
78         aodh::rabbit_port: {get_param: RabbitClientPort}
79         aodh::keystone::authtoken::project_name: 'service'
80         aodh::keystone::authtoken::user_domain_name: 'Default'
81         aodh::keystone::authtoken::project_domain_name: 'Default'
82         aodh::keystone::authtoken::password: {get_param: AodhPassword}
83         aodh::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
84         aodh::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
85         aodh::auth::auth_password: {get_param: AodhPassword}
86         aodh::auth::auth_region: {get_param: KeystoneRegion}
87         aodh::auth::auth_tenant_name: 'service'
88       service_config_settings:
89         keystone:
90           aodh::keystone::auth::public_url: {get_param: [EndpointMap, AodhPublic, uri]}
91           aodh::keystone::auth::internal_url: {get_param: [EndpointMap, AodhInternal, uri]}
92           aodh::keystone::auth::admin_url: {get_param: [EndpointMap, AodhAdmin, uri]}
93           aodh::keystone::auth::password: {get_param: AodhPassword}
94           aodh::keystone::auth::region: {get_param: KeystoneRegion}
95           aodh::keystone::auth::tenant: 'service'
96         mysql:
97           aodh::db::mysql::user: aodh
98           aodh::db::mysql::password: {get_param: AodhPassword}
99           aodh::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
100           aodh::db::mysql::dbname: aodh
101           aodh::db::mysql::allowed_hosts:
102             - '%'
103             - "%{hiera('mysql_bind_host')}"