From: Stephen Gran Date: Thu, 3 May 2012 06:29:55 +0000 (+0100) Subject: sanity checking X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=56b0a3e1ac86415374dc728b4785ef939a2520cc;p=mirror%2Fdsa-puppet.git sanity checking Signed-off-by: Stephen Gran --- diff --git a/modules/ferm/manifests/module.pp b/modules/ferm/manifests/module.pp index 249e7b357..076d3e5bc 100644 --- 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 {