diff options
author | Micah Anderson <micah@riseup.net> | 2011-01-10 15:35:52 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2011-01-10 15:35:52 -0500 |
commit | 38cad6021d905c893e66eb2fab90e669ccf7087b (patch) | |
tree | fa9796ded3919318e4b6b927abf7041713755744 /manifests/puppetmaster/hasdb | |
parent | 7712633da4e8a2accacde65f1197f5b9bd0252b4 (diff) |
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
Diffstat (limited to 'manifests/puppetmaster/hasdb')
-rw-r--r-- | manifests/puppetmaster/hasdb/mysql.pp | 8 |
1 files changed, 5 insertions, 3 deletions
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", + } } } |