extension_script.pp 516 Bytes
Newer Older
1
# See http://shorewall.net/shorewall_extension_scripts.htm
2
define shorewall::extension_script($script = '') {
3 4 5 6 7 8 9 10 11 12 13 14
    case $name {
        'init', 'initdone', 'start', 'started', 'stop', 'stopped', 'clear', 'refresh', 'continue', 'maclog': {
            shorewall::managed_file { "${name}": }
            shorewall::entry { "${name}.d/500-${hostname}":
                line => "${script}\n";
            }
        }
        '', default: {
            err("${name}: unknown shorewall extension script")
        }
    }
}