munin installation (+ test auf immer1-0)
[puppet_munin.git] / manifests / host.pp
1 # host.pp - the master host of the munin installation
2 # Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
3 # See LICENSE for the full license granted to you.
4
5 class munin::host
6 {
7         package { [ "munin", "nmap"]: ensure => installed, }
8
9         File <<||>>
10
11         concatenated_file { "/etc/munin/munin.conf":
12                 dir => $NODESDIR,
13                 header => "/etc/munin/munin.conf.header",
14         }
15         
16 }
17
18 class munin::snmp_collector
19 {
20
21         file { 
22                 "/var/lib/puppet/modules/munin/create_snmp_links":
23                         source => "puppet://$servername/munin/create_snmp_links.sh",
24                         mode => 755, owner => root, group => root;
25         }
26
27         exec { "create_snmp_links":
28                 command => "/var/lib/puppet/modules/munin/create_snmp_links $NODESDIR",
29                 require => File["snmp_links"],
30                 timeout => "2048",
31                 schedule => daily
32         }
33 }