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