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 @@
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")
}
}
}
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