diff options
author | 2015-02-01 17:18:43 -0500 | |
---|---|---|
committer | 2015-02-04 09:33:13 -0500 | |
commit | 6ba5a410628bcc611923f798baa807ef799178d5 (patch) | |
tree | 457d715fbf600f71478cc4f08b065d85b5ba1fb1 /puppet/overcloud_object.pp | |
parent | a5be320a86dfe2ea92d42ca4b93dba81b6bf1d35 (diff) |
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
Diffstat (limited to 'puppet/overcloud_object.pp')
-rw-r--r-- | puppet/overcloud_object.pp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/puppet/overcloud_object.pp b/puppet/overcloud_object.pp index 92b2a66f..d415c23a 100644 --- a/puppet/overcloud_object.pp +++ b/puppet/overcloud_object.pp @@ -31,3 +31,13 @@ if(!defined(File['/srv/node'])) { $swift_components = ['account', 'container', 'object'] swift::storage::filter::recon { $swift_components : } swift::storage::filter::healthcheck { $swift_components : } + +$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' ], +} |