summaryrefslogtreecommitdiff
path: root/manifests/client/base.pp
diff options
context:
space:
mode:
authorEwoud Kohl van Wijngaarden <e.kohlvanwijngaarden@oxilion.nl>2013-05-06 18:13:12 +0200
committerEwoud Kohl van Wijngaarden <e.kohlvanwijngaarden@oxilion.nl>2013-07-02 19:20:22 +0200
commitaaf55c9ebfa0e34f63b2ca3c2b660e1d164026dd (patch)
treea57cb9f94b00a43efbcd15b6e8b507d6de22be3b /manifests/client/base.pp
parent46c1aeb48f03f5eb0f761f0135de967a62986515 (diff)
lintify
Diffstat (limited to 'manifests/client/base.pp')
-rw-r--r--manifests/client/base.pp26
1 files changed, 16 insertions, 10 deletions
diff --git a/manifests/client/base.pp b/manifests/client/base.pp
index 78398a9..3c0ba89 100644
--- a/manifests/client/base.pp
+++ b/manifests/client/base.pp
@@ -1,24 +1,30 @@
+# Install a basic munin client
class munin::client::base {
service { 'munin-node':
- ensure => running,
- enable => true,
- hasstatus => true,
+ ensure => running,
+ enable => true,
+ hasstatus => true,
hasrestart => true,
}
file {'/etc/munin':
ensure => directory,
- mode => 0755, owner => root, group => 0;
+ mode => '0755',
+ owner => root,
+ group => 0,
}
file {'/etc/munin/munin-node.conf':
content => template("munin/munin-node.conf.${::operatingsystem}"),
- notify => Service['munin-node'],
- mode => 0644, owner => root, group => 0,
+ notify => Service['munin-node'],
+ mode => '0644',
+ owner => root,
+ group => 0,
+ }
+ $host = $munin::client::host ? {
+ '*' => $::fqdn,
+ default => $munin::client::host
}
munin::register { $::fqdn:
- host => $munin::client::host ? {
- '*' => $::fqdn,
- default => $munin::client::host
- },
+ host => $host,
port => $munin::client::port,
use_ssh => $munin::client::use_ssh,
config => [ 'use_node_name yes', 'load.load.warning 5', 'load.load.critical 10'],