81 lines
2.6 KiB
Puppet
81 lines
2.6 KiB
Puppet
# == Class: ceilometer::params
|
|
#
|
|
# These parameters need to be accessed from several locations and
|
|
# should be considered to be constant
|
|
#
|
|
class ceilometer::params {
|
|
|
|
assert_private()
|
|
|
|
include openstacklib::defaults
|
|
|
|
$dbsync_command = 'ceilometer-upgrade'
|
|
$user = 'ceilometer'
|
|
$event_pipeline = '/etc/ceilometer/event_pipeline.yaml'
|
|
$pipeline = '/etc/ceilometer/pipeline.yaml'
|
|
$polling = '/etc/ceilometer/polling.yaml'
|
|
$group = 'ceilometer'
|
|
$polling_meters = [
|
|
'cpu',
|
|
'cpu_l3_cache',
|
|
'memory.usage',
|
|
'network.incoming.bytes',
|
|
'network.incoming.packets',
|
|
'network.outgoing.bytes',
|
|
'network.outgoing.packets',
|
|
'disk.device.read.bytes',
|
|
'disk.device.read.requests',
|
|
'disk.device.write.bytes',
|
|
'disk.device.write.requests',
|
|
'volume.size',
|
|
'volume.snapshot.size',
|
|
'volume.backup.size',
|
|
'hardware.cpu.util',
|
|
'hardware.cpu.user',
|
|
'hardware.cpu.nice',
|
|
'hardware.cpu.system',
|
|
'hardware.cpu.idle',
|
|
'hardware.cpu.wait',
|
|
'hardware.cpu.kernel',
|
|
'hardware.cpu.interrupt',
|
|
'hardware.memory.used',
|
|
'hardware.memory.total',
|
|
'hardware.memory.buffer',
|
|
'hardware.memory.cached',
|
|
'hardware.memory.swap.avail',
|
|
'hardware.memory.swap.total',
|
|
'hardware.system_stats.io.outgoing.blocks',
|
|
'hardware.system_stats.io.incoming.blocks',
|
|
'hardware.network.ip.incoming.datagrams',
|
|
'hardware.network.ip.outgoing.datagrams',
|
|
]
|
|
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
# package names
|
|
$agent_polling_package_name = 'openstack-ceilometer-polling'
|
|
$agent_notification_package_name = 'openstack-ceilometer-notification'
|
|
$common_package_name = 'openstack-ceilometer-common'
|
|
# service names
|
|
$agent_polling_service_name = 'openstack-ceilometer-polling'
|
|
$agent_notification_service_name = 'openstack-ceilometer-notification'
|
|
$libvirt_group = undef
|
|
}
|
|
'Debian': {
|
|
# package names
|
|
$agent_polling_package_name = 'ceilometer-polling'
|
|
$agent_notification_package_name = 'ceilometer-agent-notification'
|
|
$common_package_name = 'ceilometer-common'
|
|
# service names
|
|
$agent_polling_service_name = 'ceilometer-polling'
|
|
$agent_notification_service_name = 'ceilometer-agent-notification'
|
|
$libvirt_group = 'libvirt'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem: \
|
|
${::operatingsystem}, module ${module_name} only support osfamily \
|
|
RedHat and Debian")
|
|
}
|
|
}
|
|
}
|