diff options
author | mh <mh@immerda.ch> | 2011-11-05 14:14:32 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-11-05 14:14:32 +0100 |
commit | 9b161f0c61bbd30960e663eceef8f1b35f633507 (patch) | |
tree | 340e8f17084fc4b71478fb9b098f8d964d8fa62d /manifests/client | |
parent | 33380e238f3ac37ac79f30485fdebbc5dd10170b (diff) |
use hiera to configure munin node specific things
Diffstat (limited to 'manifests/client')
-rw-r--r-- | manifests/client/base.pp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/manifests/client/base.pp b/manifests/client/base.pp index 17387e8..6b4bef9 100644 --- a/manifests/client/base.pp +++ b/manifests/client/base.pp @@ -1,4 +1,6 @@ -class munin::client::base { +class munin::client::base( + $munin_allow = hiera('munin_allow','127.0.0.1') +) { service { 'munin-node': ensure => running, enable => true, @@ -9,10 +11,6 @@ class munin::client::base { ensure => directory, mode => 0755, owner => root, group => 0; } - $real_munin_allow = $munin_allow ? { - '' => '127.0.0.1', - default => $munin_allow - } file {'/etc/munin/munin-node.conf': content => template("munin/munin-node.conf.$operatingsystem"), notify => Service['munin-node'], |