summaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
authorTomas Barton <barton.tomas@gmail.com>2013-10-13 20:24:20 +0200
committerTomas Barton <barton.tomas@gmail.com>2013-10-13 20:24:20 +0200
commit26224742940b06335bca3cb8f5e09d0c0a5cabef (patch)
tree592acfa1be20f380c0002d1acbe2249c4d51afe4 /manifests/client.pp
parentdcea01c89c802c4055e2e99a4ed17576a4c5581b (diff)
Class[] -> Class[] requirement replaced by an anchor
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp38
1 files changed, 32 insertions, 6 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index 4d70cac..c33ec0d 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -12,13 +12,39 @@ class munin::client(
$shorewall_collector_source = 'net',
$export_tag = 'munin'
) {
+ anchor { 'munin::client::installed': }
+
case $::operatingsystem {
- openbsd: { include munin::client::openbsd }
- darwin: { include munin::client::darwin }
- debian,ubuntu: { include munin::client::debian }
- gentoo: { include munin::client::gentoo }
- centos: { include munin::client::package }
- default: { include munin::client::base }
+ openbsd: {
+ class { 'munin::client::openbsd':
+ before => Anchor['munin::client::installed']
+ }
+ }
+ darwin: {
+ class { 'munin::client::darwin':
+ before => Anchor['munin::client::installed']
+ }
+ }
+ debian,ubuntu: {
+ class { 'munin::client::debian':
+ before => Anchor['munin::client::installed']
+ }
+ }
+ gentoo: {
+ class { 'munin::client::gentoo':
+ before => Anchor['munin::client::installed']
+ }
+ }
+ centos: {
+ class { 'munin::client::package':
+ before => Anchor['munin::client::installed']
+ }
+ }
+ default: {
+ class { 'munin::client::base':
+ before => Anchor['munin::client::installed']
+ }
+ }
}
if $munin::client::manage_shorewall {
class{'shorewall::rules::munin':