diff options
author | Ewoud Kohl van Wijngaarden <e.kohlvanwijngaarden@oxilion.nl> | 2013-07-02 22:49:02 +0200 |
---|---|---|
committer | Ewoud Kohl van Wijngaarden <e.kohlvanwijngaarden@oxilion.nl> | 2013-11-20 14:34:32 +0100 |
commit | 057658ba93e2562c596dfa5607836679631be916 (patch) | |
tree | 43d9398cbcd950553f59676a36740ffe316999ad /manifests/client/params.pp | |
parent | 99782a1f6446e5fee1670e832f22731aef77d2f6 (diff) |
Unify OS specific munin-conf.conf
In essence all munin-node.conf files contained the same template,
besides a few values. By moving all to a single template, maintenance
burden is reduced. To ensure all values are still present in the
templates, tests are added.
Diffstat (limited to 'manifests/client/params.pp')
-rw-r--r-- | manifests/client/params.pp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/manifests/client/params.pp b/manifests/client/params.pp new file mode 100644 index 0000000..14d3749 --- /dev/null +++ b/manifests/client/params.pp @@ -0,0 +1,19 @@ +# Set the parameters for the munin client +class munin::client::params { + $user = 'root' + + case $::operatingsystem { + 'OpenBSD': { + $group = '0' + $log_file = '/var/log/munin-node/munin-node.log' + } + 'Debian': { + $group = 'root' + $log_file = '/var/log/munin/munin-node.log' + } + default: { + $group = 'root' + $log_file = '/var/log/munin-node/munin-node.log' + } + } +} |