diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2010-05-14 11:02:03 -0400 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2010-05-14 18:11:55 -0400 |
commit | f1586a7fbcc79fee6542790b1f4c930929af7e04 (patch) | |
tree | 1d68310b76034c20095dc0969b03a7d3b40d56f6 /manifests/register_snmp.pp | |
parent | 4591a91f7a8b169d0aa3ccb46357c60f8dcb7079 (diff) |
refactor register class and client template
Diffstat (limited to 'manifests/register_snmp.pp')
-rw-r--r-- | manifests/register_snmp.pp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/manifests/register_snmp.pp b/manifests/register_snmp.pp deleted file mode 100644 index ebd494a..0000000 --- a/manifests/register_snmp.pp +++ /dev/null @@ -1,21 +0,0 @@ -# snmp_testplugin: the plugin we use to test if it's set -define munin::register_snmp( - $snmpd_testplugin = 'load' -) -{ - $munin_port_real = $munin_port ? { '' => 4949, default => $munin_port } - $munin_host_real = $munin_host ? { - '' => '*', - 'fqdn' => '*', - default => $munin_host - } - exec{"register_snmp_munin_for_${name}": - command => "munin-node-configure-snmp ${name} | sh", - unless => "test -e /etc/munin/plugins/snmp_${name}_${snmpd_testplugin}", - } - @@file { "munin_snmp_${name}": path => "/var/lib/puppet/modules/munin/nodes/${name}", - ensure => present, - content => template("munin/snmpclient.erb"), - tag => 'munin', - } -} |