Change flat network name for nosdn fdio scenario
[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   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   AodhPassword:
34     description: The password for the aodh services.
35     type: string
36     hidden: true
37   RedisPassword:
38     description: The password for the redis service account.
39     type: string
40     hidden: true
41   RabbitPassword:
42     description: The password for RabbitMQ
43     type: string
44     hidden: true
45   RabbitUserName:
46     default: guest
47     description: The username for RabbitMQ
48     type: string
49   RabbitClientUseSSL:
50     default: false
51     description: >
52         Rabbit client subscriber parameter to specify
53         an SSL connection to the RabbitMQ host.
54     type: string
55   RabbitClientPort:
56     default: 5672
57     description: Set rabbit subscriber port, change this if using SSL
58     type: number
59   Debug:
60     default: ''
61     description: Set to True to enable debugging on all services.
62     type: string
63   AodhDebug:
64     default: ''
65     description: Set to True to enable debugging Aodh services.
66     type: string
67   KeystoneRegion:
68     type: string
69     default: 'regionOne'
70     description: Keystone region for endpoint
71   NotificationDriver:
72     type: string
73     default: 'messagingv2'
74     description: Driver or drivers to handle sending notifications.
75     constraints:
76       - allowed_values: [ 'messagingv2', 'noop' ]
77
78 conditions:
79   service_debug_unset: {equals : [{get_param: AodhDebug}, '']}
80
81 outputs:
82   role_data:
83     description: Role data for the Aodh role.
84     value:
85       service_name: aodh_base
86       config_settings:
87         aodh_redis_password: {get_param: RedisPassword}
88         aodh::db::database_connection:
89           make_url:
90             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
91             username: aodh
92             password: {get_param: AodhPassword}
93             host: {get_param: [EndpointMap, MysqlInternal, host]}
94             path: /aodh
95             query:
96               read_default_file: /etc/my.cnf.d/tripleo.cnf
97               read_default_group: tripleo
98         aodh::debug:
99           if:
100           - service_debug_unset
101           - {get_param: Debug }
102           - {get_param: AodhDebug }
103         aodh::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
104         aodh::notification_driver: {get_param: NotificationDriver}
105         aodh::rabbit_userid: {get_param: RabbitUserName}
106         aodh::rabbit_password: {get_param: RabbitPassword}
107         aodh::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
108         aodh::rabbit_port: {get_param: RabbitClientPort}
109         aodh::keystone::authtoken::project_name: 'service'
110         aodh::keystone::authtoken::user_domain_name: 'Default'
111         aodh::keystone::authtoken::project_domain_name: 'Default'
112         aodh::keystone::authtoken::password: {get_param: AodhPassword}
113         aodh::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
114         aodh::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
115         aodh::auth::auth_password: {get_param: AodhPassword}
116         aodh::auth::auth_region: {get_param: KeystoneRegion}
117         aodh::auth::auth_tenant_name: 'service'
118       service_config_settings:
119         keystone:
120           aodh::keystone::auth::public_url: {get_param: [EndpointMap, AodhPublic, uri]}
121           aodh::keystone::auth::internal_url: {get_param: [EndpointMap, AodhInternal, uri]}
122           aodh::keystone::auth::admin_url: {get_param: [EndpointMap, AodhAdmin, uri]}
123           aodh::keystone::auth::password: {get_param: AodhPassword}
124           aodh::keystone::auth::region: {get_param: KeystoneRegion}
125           aodh::keystone::auth::tenant: 'service'
126         mysql:
127           aodh::db::mysql::user: aodh
128           aodh::db::mysql::password: {get_param: AodhPassword}
129           aodh::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
130           aodh::db::mysql::dbname: aodh
131           aodh::db::mysql::allowed_hosts:
132             - '%'
133             - "%{hiera('mysql_bind_host')}"