aboutsummaryrefslogtreecommitdiff
path: root/manifests/role/nas.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-13 20:42:36 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-13 20:42:36 -0300
commit643f7ae9436fa9573c137963f23bbbcde6d2ca9b (patch)
treecbf2bf678c2a762e68c7cab58100452f52d30d57 /manifests/role/nas.pp
parentd28c3aee770c728aca424dec1cab584d4806fbb4 (diff)
downloadpuppet-nodo-643f7ae9436fa9573c137963f23bbbcde6d2ca9b.tar.gz
puppet-nodo-643f7ae9436fa9573c137963f23bbbcde6d2ca9b.tar.bz2
Munin conditionals at nodo::role::nas
Diffstat (limited to 'manifests/role/nas.pp')
-rw-r--r--manifests/role/nas.pp18
1 files changed, 8 insertions, 10 deletions
diff --git a/manifests/role/nas.pp b/manifests/role/nas.pp
index 536f9ca..a0a4c3d 100644
--- a/manifests/role/nas.pp
+++ b/manifests/role/nas.pp
@@ -82,11 +82,10 @@ class nodo::role::nas(
server => true;
}
- munin::plugin { [ 'nfsd4' ]:
- ensure => $munin ? {
- true => present,
- default => absent,
- },
+ if $munin == true {
+ munin::plugin { [ 'nfsd4' ]:
+ ensure => present,
+ }
}
}
@@ -192,11 +191,10 @@ class nodo::role::nas(
},
}
- munin::plugin { [ 'samba' ]:
- ensure => $munin ? {
- true => present,
- default => absent,
- },
+ if $munin == true {
+ munin::plugin { [ 'samba' ]:
+ ensure => present,
+ }
}
}