summaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-13 20:40:57 -0300
committermh <mh@immerda.ch>2012-06-13 20:40:57 -0300
commitc95f0b2fcf4f35b1a7ae3ad9c04600a32ab2bb43 (patch)
treeb643e6144b1fe32cdba08692cce075a0fc2aa2b5 /manifests/client.pp
parentb4a30b6255ca495b98803317ad691fa1a26a4987 (diff)
migrate away from hiera stuff
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp16
1 files changed, 11 insertions, 5 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index 79d275e..934d23a 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -4,9 +4,11 @@
# Adapted and improved by admin(at)immerda.ch
class munin::client(
- $allow = hiera('munin_client_allow',['127.0.0.1']),
- $host = hiera('munin_host','*'),
- $port = hiera('munin_port','4949')
+ $allow = [ '127.0.0.1' ],
+ $host = '*',
+ $port = '4949',
+ $manage_shorewall = false,
+ $shorewall_collector_source = 'net'
) {
case $::operatingsystem {
openbsd: { include munin::client::openbsd }
@@ -16,7 +18,11 @@ class munin::client(
centos: { include munin::client::package }
default: { include munin::client::base }
}
- if hiera('use_shorewall',false) {
- include shorewall::rules::munin
+ if $munin::client::manage_shorewall {
+ class{'shorewall::rules::munin':
+ munin_port => $port,
+ munin_collector => delete($allow,'127.0.0.1'),
+ collector_source => $shorewall_collector_source,
+ }
}
}