Commit d98823a7 authored by Micah Anderson's avatar Micah Anderson

update extension-script to use a simple file resource, instead of doing a...

update extension-script to use a simple file resource, instead of doing a managed file since it is never a fragement
parent c3629ee7
...@@ -2,13 +2,12 @@ ...@@ -2,13 +2,12 @@
define shorewall::extension_script($script = '') { define shorewall::extension_script($script = '') {
case $name { case $name {
'init', 'initdone', 'start', 'started', 'stop', 'stopped', 'clear', 'refresh', 'continue', 'maclog': { 'init', 'initdone', 'start', 'started', 'stop', 'stopped', 'clear', 'refresh', 'continue', 'maclog': {
shorewall::managed_file { "${name}": } file { "/etc/shorewall/puppet/${name}":
shorewall::entry { "extension_script-${order}-${name}": content => "${script}\n";
line => "${script}\n"; }
}
} }
'', default: { '', default: {
err("${name}: unknown shorewall extension script") err("${name}: unknown shorewall extension script")
} }
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment