diff options
author | Marcel Haerry <haerry@puzzle.ch> | 2008-04-22 11:35:05 +0200 |
---|---|---|
committer | Marcel Haerry <haerry@puzzle.ch> | 2008-04-22 11:35:05 +0200 |
commit | b7d5281fa67ff330c28571c9b8df602acba65437 (patch) | |
tree | 14ce9205a9f50b055a43b78146bb2fbcc7e8de23 /manifests/host.pp | |
parent | ebdcae0d53a7ee50e2abb2f6606f731cb76c83e8 (diff) | |
parent | ff89c05910e5185a3c5cf47bd6f4e3f52596cf33 (diff) |
merged davids
Diffstat (limited to 'manifests/host.pp')
-rw-r--r-- | manifests/host.pp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/manifests/host.pp b/manifests/host.pp new file mode 100644 index 0000000..f539c9e --- /dev/null +++ b/manifests/host.pp @@ -0,0 +1,39 @@ +# 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 <<| tag == 'munin' |>> + + concatenated_file { "/etc/munin/munin.conf": + dir => $NODESDIR, + header => "/etc/munin/munin.conf.header", + } + + file { ["/var/log/munin-update.log", "/var/log/munin-limits.log", + "/var/log/munin-graph.log", "/var/log/munin-html.log"]: + ensure => present, + mode => 640, owner => munin, group => root; + } + +} + +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 + } +} |