aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2015-11-20 22:45:59 +0100
committermh <mh@immerda.ch>2015-12-05 11:36:31 +0100
commitbbd82b23d8d5d7ef41f05bc6f4afc5ba400a91f4 (patch)
tree0e66afa2007da85793046add37477b858d541093
parent220d7af45dc4b1c334e2d3f50f2bc8ab54139093 (diff)
downloadpuppet-shorewall-bbd82b23d8d5d7ef41f05bc6f4afc5ba400a91f4.tar.gz
puppet-shorewall-bbd82b23d8d5d7ef41f05bc6f4afc5ba400a91f4.tar.bz2
linting
-rw-r--r--manifests/base.pp10
-rw-r--r--manifests/debian.pp10
-rw-r--r--manifests/extension_script.pp24
3 files changed, 23 insertions, 21 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index db6852a..41348ef 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -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'],
}
}
diff --git a/manifests/debian.pp b/manifests/debian.pp
index 326b42b..07176a3 100644
--- a/manifests/debian.pp
+++ b/manifests/debian.pp
@@ -1,11 +1,11 @@
+# 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';
}
}
diff --git a/manifests/extension_script.pp b/manifests/extension_script.pp
index 4abc6b1..80b83d3 100644
--- a/manifests/extension_script.pp
+++ b/manifests/extension_script.pp
@@ -1,14 +1,16 @@
# 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")
+ }
+ }
}