projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fa5541
)
sanity checking
author
Stephen Gran
<steve@lobefin.net>
Thu, 3 May 2012 06:29:55 +0000
(07:29 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Thu, 3 May 2012 06:29:55 +0000
(07:29 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/ferm/manifests/module.pp
patch
|
blob
|
history
diff --git
a/modules/ferm/manifests/module.pp
b/modules/ferm/manifests/module.pp
index
249e7b3
..
076d3e5
100644
(file)
--- a/
modules/ferm/manifests/module.pp
+++ b/
modules/ferm/manifests/module.pp
@@
-3,6
+3,12
@@
define ferm::module (
$mod=undef,
$ensure=present
) {
+
+ case $ensure {
+ present,absent: {}
+ default: { fail ( "Invalid ensure `${ensure}' for ${name}" ) }
+ }
+
if $mod {
$module = $mod
} else {