summaryrefslogtreecommitdiff
path: root/manifests/host.pp
diff options
context:
space:
mode:
authordavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>2007-08-07 11:42:33 +0000
committerdavid <david@f03ff2f1-f02d-0410-970d-b9634babeaa1>2007-08-07 11:42:33 +0000
commit51e43cf0233e87ca2e473a85397795cbcd1b1052 (patch)
tree8fe6937bdd1859d7bc10ab57bf0ef704d4a5d28d /manifests/host.pp
fix "fail on no ntp_ plugins" bug
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@176 f03ff2f1-f02d-0410-970d-b9634babeaa1
Diffstat (limited to 'manifests/host.pp')
-rw-r--r--manifests/host.pp33
1 files changed, 33 insertions, 0 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
new file mode 100644
index 0000000..d790b4a
--- /dev/null
+++ b/manifests/host.pp
@@ -0,0 +1,33 @@
+# host.pp - the master host of the munin installation
+# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
+# See LICENSE for the full license granted to you.
+
+class munin::host
+{
+ package { [ "munin", "nmap"]: ensure => installed, }
+
+ File <<||>>
+
+ concatenated_file { "/etc/munin/munin.conf":
+ dir => "/var/lib/puppet/modules/munin/nodes/",
+ header => "/etc/munin/munin.conf.header",
+ }
+
+}
+
+class munin::snmp_collector
+{
+
+ file {
+ "/var/lib/puppet/modules/munin/create_snmp_links":
+ source => "puppet://$servername/munin/create_snmp_links.sh",
+ mode => 755, owner => root, group => root;
+ }
+
+ exec { "create_snmp_links":
+ command => "/var/lib/puppet/modules/munin/create_snmp_links $NODESDIR",
+ require => File["snmp_links"],
+ timeout => "2048",
+ schedule => daily
+ }
+}