aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2015-02-01 17:18:43 -0500
committerDan Prince <dprince@redhat.com>2015-02-04 09:33:13 -0500
commit6ba5a410628bcc611923f798baa807ef799178d5 (patch)
tree457d715fbf600f71478cc4f08b065d85b5ba1fb1
parenta5be320a86dfe2ea92d42ca4b93dba81b6bf1d35 (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
-rw-r--r--puppet/overcloud_compute.pp10
-rw-r--r--puppet/overcloud_controller.pp10
-rw-r--r--puppet/overcloud_object.pp10
-rw-r--r--puppet/overcloud_volume.pp10
4 files changed, 40 insertions, 0 deletions
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' ],
+}
diff --git a/puppet/overcloud_controller.pp b/puppet/overcloud_controller.pp
index f2e8733d..6af54a5e 100644
--- a/puppet/overcloud_controller.pp
+++ b/puppet/overcloud_controller.pp
@@ -288,4 +288,14 @@ if hiera('step') >= 2 {
'DEFAULT/instance_user': value => 'heat-admin';
}
+ $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' ],
+ }
+
} #END STEP 2
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' ],
+}
diff --git a/puppet/overcloud_volume.pp b/puppet/overcloud_volume.pp
index e21eca50..91566bb2 100644
--- a/puppet/overcloud_volume.pp
+++ b/puppet/overcloud_volume.pp
@@ -19,3 +19,13 @@ include ::cinder
include ::cinder::volume
include ::cinder::volume::iscsi
include ::cinder::setup_test_volume
+
+$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' ],
+}