Merge "Containerize Horizon"
[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
68 conditions:
69   service_debug_unset: {equals : [{get_param: AodhDebug}, '']}
70
71 outputs:
72   role_data:
73     description: Role data for the Aodh role.
74     value:
75       service_name: aodh_base
76       config_settings:
77         aodh_redis_password: {get_param: RedisPassword}
78         aodh::db::database_connection:
79           make_url:
80             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
81             username: aodh
82             password: {get_param: AodhPassword}
83             host: {get_param: [EndpointMap, MysqlInternal, host]}
84             path: /aodh
85             query:
86               read_default_file: /etc/my.cnf.d/tripleo.cnf
87               read_default_group: tripleo
88         aodh::debug:
89           if:
90           - service_debug_unset
91           - {get_param: Debug }
92           - {get_param: AodhDebug }
93         aodh::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
94         aodh::rabbit_userid: {get_param: RabbitUserName}
95         aodh::rabbit_password: {get_param: RabbitPassword}
96         aodh::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
97         aodh::rabbit_port: {get_param: RabbitClientPort}
98         aodh::keystone::authtoken::project_name: 'service'
99         aodh::keystone::authtoken::user_domain_name: 'Default'
100         aodh::keystone::authtoken::project_domain_name: 'Default'
101         aodh::keystone::authtoken::password: {get_param: AodhPassword}
102         aodh::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
103         aodh::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
104         aodh::auth::auth_password: {get_param: AodhPassword}
105         aodh::auth::auth_region: {get_param: KeystoneRegion}
106         aodh::auth::auth_tenant_name: 'service'
107       service_config_settings:
108         keystone:
109           aodh::keystone::auth::public_url: {get_param: [EndpointMap, AodhPublic, uri]}
110           aodh::keystone::auth::internal_url: {get_param: [EndpointMap, AodhInternal, uri]}
111           aodh::keystone::auth::admin_url: {get_param: [EndpointMap, AodhAdmin, uri]}
112           aodh::keystone::auth::password: {get_param: AodhPassword}
113           aodh::keystone::auth::region: {get_param: KeystoneRegion}
114           aodh::keystone::auth::tenant: 'service'
115         mysql:
116           aodh::db::mysql::user: aodh
117           aodh::db::mysql::password: {get_param: AodhPassword}
118           aodh::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
119           aodh::db::mysql::dbname: aodh
120           aodh::db::mysql::allowed_hosts:
121             - '%'
122             - "%{hiera('mysql_bind_host')}"