1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'manifests/node/metering.pp', line 1
class kickstack::node::metering inherits kickstack {
$keystone_internal_address = getvar("${fact_prefix}keystone_internal_address")
$ceilometer_sql_conn = getvar("${fact_prefix}ceilometer_sql_connection")
$ceilometer_keystone_password = getvar("${fact_prefix}ceilometer_keystone_password")
$ceilometer_metering_secret = getvar("${::kickstack::fact_prefix}ceilometer_metering_secret")
case $::kickstack::rpc {
'rabbitmq': {
$amqp_host = getvar("${::kickstack::fact_prefix}rabbit_host")
$amqp_password = getvar("${::kickstack::fact_prefix}rabbit_password")
}
'qpid': {
$amqp_host = getvar("${::kickstack::fact_prefix}qpid_host")
$amqp_password = getvar("${::kickstack::fact_prefix}qpid_password")
}
}
if $ceilometer_sql_conn and $ceilometer_keystone_password and $ceilometer_metering_secret {
include ::kickstack::ceilometer::agent::metering
}
}
|