migrate away from hiera stuff
[puppet_munin.git] / manifests / client / base.pp
1 class munin::client::base {
2   service { 'munin-node':
3     ensure => running,
4     enable => true,
5     hasstatus => true,
6     hasrestart => true,
7   }
8   file {'/etc/munin':
9     ensure => directory,
10     mode => 0755, owner => root, group => 0;
11   }
12   file {'/etc/munin/munin-node.conf':
13     content => template("munin/munin-node.conf.${::operatingsystem}"),
14     notify => Service['munin-node'],
15     mode => 0644, owner => root, group => 0,
16   }
17   munin::register { $::fqdn:
18     host => $munin::client::host,
19     port => $munin::client::port,
20     config => [ 'use_node_name yes', 'load.load.warning 5', 'load.load.critical 10'],
21   }
22   include munin::plugins::base
23 }