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:
fe18e77
)
do a better job of setting defaults
author
Stephen Gran
<steve@lobefin.net>
Mon, 16 Apr 2012 12:31:57 +0000
(13:31 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Mon, 16 Apr 2012 12:31:57 +0000
(13:31 +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
e305611
..
e11dd28
100644
(file)
--- a/
modules/ferm/manifests/module.pp
+++ b/
modules/ferm/manifests/module.pp
@@
-1,8
+1,14
@@
define ferm::module (
$hookstage='pre',
- $mod
ule=$title
,
+ $mod
=undef
,
$ensure=present
) {
+ if $mod {
+ $module = $mod
+ } else {
+ $module = $title
+ }
+
file { "/etc/ferm/conf.d/load_${module}.conf":
ensure => $ensure,
content => template('ferm/load_module.erb'),