From 38cad6021d905c893e66eb2fab90e669ccf7087b Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Mon, 10 Jan 2011 15:35:52 -0500 Subject: add a $use_munin variable to give a knob to turn on/off munin graphing. add two new munin graphs for puppetmaster: one to graph the memory usage of the running puppetmasters; and one to graph the average compile time --- manifests/puppetmaster/hasdb/mysql.pp | 8 +++++--- manifests/puppetmaster/munin.pp | 9 +++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 manifests/puppetmaster/munin.pp (limited to 'manifests/puppetmaster') diff --git a/manifests/puppetmaster/hasdb/mysql.pp b/manifests/puppetmaster/hasdb/mysql.pp index 322bf69..1ed122a 100644 --- a/manifests/puppetmaster/hasdb/mysql.pp +++ b/manifests/puppetmaster/hasdb/mysql.pp @@ -23,8 +23,10 @@ define puppet::puppetmaster::hasdb::mysql ( tag => "mysql_${dbhostfqdn}", } - munin::plugin::deploy { 'puppetresources': - source => "puppet/munin/puppetresources.mysql", - config => "env.mysqlopts --user=$dbuser --password=$dbpwd -h $dbhost\nenv.puppetdb $dbname", + if $use_munin { + munin::plugin::deploy { 'puppetresources': + source => "puppet/munin/puppetresources.mysql", + config => "env.mysqlopts --user=$dbuser --password=$dbpwd -h $dbhost\nenv.puppetdb $dbname", + } } } diff --git a/manifests/puppetmaster/munin.pp b/manifests/puppetmaster/munin.pp new file mode 100644 index 0000000..4500b74 --- /dev/null +++ b/manifests/puppetmaster/munin.pp @@ -0,0 +1,9 @@ +class puppet::puppetmaster::munin { + + munin::plugin::deploy { + [ 'puppetmaster_memory', 'puppet_clients' ]: + source => "puppet/munin/puppet_", + config => "user root" + } + +} -- cgit v1.2.3