summaryrefslogtreecommitdiff
path: root/manifests/snmp_collector.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-09-29 22:51:15 +0200
committermh <mh@immerda.ch>2009-09-29 22:51:15 +0200
commit1893960c1babb6a261cc6fc399231e9c0644a104 (patch)
tree7e4fb1f3d2d34490b8d5cfff50d6f9cadf890fb9 /manifests/snmp_collector.pp
parentc63a28d3c16ec2bb3a46d3d5faf6d7ef3b737b70 (diff)
refactor everything into its own file
Diffstat (limited to 'manifests/snmp_collector.pp')
-rw-r--r--manifests/snmp_collector.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/snmp_collector.pp b/manifests/snmp_collector.pp
new file mode 100644
index 0000000..53a860f
--- /dev/null
+++ b/manifests/snmp_collector.pp
@@ -0,0 +1,14 @@
+class munin::snmp_collector{
+ file {
+ "/var/lib/puppet/modules/munin/create_snmp_links":
+ source => "puppet://$server/munin/create_snmp_links.sh",
+ mode => 755, owner => root, group => 0;
+ }
+
+ exec { "create_snmp_links":
+ command => "/var/lib/puppet/modules/munin/create_snmp_links /var/lib/puppet/modules/munin/nodes",
+ require => File["snmp_links"],
+ timeout => "2048",
+ schedule => daily
+ }
+}