diff options
author | Micah Anderson <micah@riseup.net> | 2012-06-20 14:18:22 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2012-06-20 14:18:22 -0400 |
commit | d98823a7bdc2c53e87892bf5d366851bd0a82e92 (patch) | |
tree | ce2413c6d33bf5babd802bdb5424799a69ae9e33 | |
parent | c3629ee738066eceb16606c47486d3ae1262b812 (diff) |
update extension-script to use a simple file resource, instead of doing a managed file since it is never a fragement
-rw-r--r-- | manifests/extension_script.pp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/manifests/extension_script.pp b/manifests/extension_script.pp index e045ce3..208d81a 100644 --- a/manifests/extension_script.pp +++ b/manifests/extension_script.pp @@ -2,13 +2,12 @@ define shorewall::extension_script($script = '') { case $name { 'init', 'initdone', 'start', 'started', 'stop', 'stopped', 'clear', 'refresh', 'continue', 'maclog': { - shorewall::managed_file { "${name}": } - shorewall::entry { "extension_script-${order}-${name}": - line => "${script}\n"; - } + file { "/etc/shorewall/puppet/${name}": + content => "${script}\n"; + } } '', default: { - err("${name}: unknown shorewall extension script") + err("${name}: unknown shorewall extension script") } } } |