From 6ba5a410628bcc611923f798baa807ef799178d5 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Sun, 1 Feb 2015 17:18:43 -0500 Subject: Puppet: SNMP support for undercloud ceilometer This configures an snmp agent for the undercloud ceilometer 'hardware' metering. This rely's on the razorsedge/puppet-snmp which we are adding in I8ae104de7382767c3448a493cd37ff2994cf4f52. Change-Id: If2b6b63279b9b0402c5136ff1635e10acad1de7e --- puppet/overcloud_compute.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'puppet/overcloud_compute.pp') diff --git a/puppet/overcloud_compute.pp b/puppet/overcloud_compute.pp index d187e031..693a06b3 100644 --- a/puppet/overcloud_compute.pp +++ b/puppet/overcloud_compute.pp @@ -58,3 +58,13 @@ include ::ceilometer::agent::compute class { 'ceilometer::agent::auth': auth_url => join(['http://', hiera('keystone_host'), ':5000/v2.0']), } + +$snmpd_user = hiera('snmpd_readonly_user_name') +snmp::snmpv3_user { $snmpd_user: + authtype => 'MD5', + authpass => hiera('snmpd_readonly_user_password'), +} +class { 'snmp': + agentaddress => ['udp:161','udp6:[::1]:161'], + snmpd_config => [ join(['rouser ', hiera('snmpd_readonly_user_name')]), 'proc cron', 'includeAllDisks 10%', 'master agentx', 'trapsink localhost public', 'iquerySecName internalUser', 'rouser internalUser', 'defaultMonitors yes', 'linkUpDownNotifications yes' ], +} -- cgit 1.2.3-korg