aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/overcloud_object.pp
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/overcloud_object.pp')
-rw-r--r--puppet/overcloud_object.pp10
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' ],
+}