Commit bbd82b23 authored by mh's avatar mh

linting

parent 220d7af4
......@@ -44,10 +44,10 @@ class shorewall::base {
notify => Service['shorewall'],
}
service{'shorewall':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
require => Package['shorewall'],
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
require => Package['shorewall'],
}
}
# debian specific things
class shorewall::debian inherits shorewall::base {
file{'/etc/default/shorewall':
content => template("shorewall/debian_default.erb"),
content => template('shorewall/debian_default.erb'),
require => Package['shorewall'],
notify => Exec['shorewall_check'],
owner => 'root', group => 'root', mode => '0644';
}
Service['shorewall']{
status => '/sbin/shorewall status'
owner => 'root',
group => 'root',
mode => '0644';
}
}
# See http://shorewall.net/shorewall_extension_scripts.htm
define shorewall::extension_script($script = '') {
case $name {
'init', 'initdone', 'start', 'started', 'stop', 'stopped', 'clear', 'refresh', 'continue', 'maclog': {
file { "/etc/shorewall/puppet/${name}":
content => "${script}\n",
notify => Exec['shorewall_check'];
}
}
'', default: {
err("${name}: unknown shorewall extension script")
}
define shorewall::extension_script(
$script
) {
case $name {
'init', 'initdone', 'start', 'started', 'stop', 'stopped', 'clear', 'refresh', 'continue', 'maclog': {
file { "/etc/shorewall/puppet/${name}":
content => "${script}\n",
notify => Exec['shorewall_check'];
}
}
default: {
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