Merge "Add parameter for enabling purging configuration files"
[apex-tripleo-heat-templates.git] / puppet / services / aodh-base.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Aodh service configured with Puppet
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   AodhPassword:
13     description: The password for the aodh services.
14     type: string
15     hidden: true
16   RedisPassword:
17     description: The password for the redis service account.
18     type: string
19     hidden: true
20   RabbitPassword:
21     description: The password for RabbitMQ
22     type: string
23     hidden: true
24   RabbitUserName:
25     default: guest
26     description: The username for RabbitMQ
27     type: string
28   RabbitClientUseSSL:
29     default: false
30     description: >
31         Rabbit client subscriber parameter to specify
32         an SSL connection to the RabbitMQ host.
33     type: string
34   RabbitClientPort:
35     default: 5672
36     description: Set rabbit subscriber port, change this if using SSL
37     type: number
38   Debug:
39     default: ''
40     description: Set to True to enable debugging on all services.
41     type: string
42   KeystoneRegion:
43     type: string
44     default: 'regionOne'
45     description: Keystone region for endpoint
46
47 outputs:
48   role_data:
49     description: Role data for the Aodh role.
50     value:
51       service_name: aodh_base
52       config_settings:
53         aodh::evaluator::coordination_url:
54           list_join:
55             - ''
56             - - 'redis://:'
57               - {get_param: RedisPassword}
58               - '@'
59               - "%{hiera('redis_vip')}"
60               - ':6379/'
61         aodh::db::database_connection:
62           list_join:
63             - ''
64             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
65               - '://aodh:'
66               - {get_param: AodhPassword}
67               - '@'
68               - {get_param: [EndpointMap, MysqlInternal, host]}
69               - '/aodh'
70         aodh::debug: {get_param: Debug}
71         aodh::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri] }
72         aodh::rabbit_userid: {get_param: RabbitUserName}
73         aodh::rabbit_password: {get_param: RabbitPassword}
74         aodh::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
75         aodh::rabbit_port: {get_param: RabbitClientPort}
76         aodh::api::keystone_password: {get_param: AodhPassword}
77         aodh::api::keystone_auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
78         aodh::api::keystone_identity_uri: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
79         aodh::auth::auth_password: {get_param: AodhPassword}
80         aodh::keystone::auth::public_url: {get_param: [EndpointMap, AodhPublic, uri]}
81         aodh::keystone::auth::internal_url: {get_param: [EndpointMap, AodhInternal, uri]}
82         aodh::keystone::auth::admin_url: {get_param: [EndpointMap, AodhAdmin, uri]}
83         aodh::keystone::auth::password: {get_param: AodhPassword}
84         aodh::keystone::auth::region: {get_param: KeystoneRegion}
85         aodh::keystone::auth::tenant: 'service'
86         aodh::db::mysql::user: aodh
87         aodh::db::mysql::password: {get_param: AodhPassword}
88         aodh::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
89         aodh::db::mysql::dbname: aodh
90         aodh::db::mysql::allowed_hosts:
91           - '%'
92           - "%{hiera('mysql_bind_host')}"
93         aodh::auth::auth_region: 'regionOne'
94         aodh::auth::auth_tenant_name: 'service'