]> gitweb.fluxo.info Git - puppet-shorewall.git/commitdiff
linting
authormh <mh@immerda.ch>
Fri, 20 Nov 2015 21:45:59 +0000 (22:45 +0100)
committermh <mh@immerda.ch>
Sat, 5 Dec 2015 10:36:31 +0000 (11:36 +0100)
manifests/base.pp
manifests/debian.pp
manifests/extension_script.pp

index db6852ac062c951e3910607092cabbd3a544c5bc..41348ef366a03be5320e6167d23644b75cf941f6 100644 (file)
@@ -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'],
   }
 }
index 326b42be40366d19fdeafa357b59ba3a4742cd05..07176a32a8ab52f27f12576ec90ff58d90d67fe0 100644 (file)
@@ -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';
   }
 }
index 4abc6b18ed36a5f4632acf7a5b75fe08bb683b3b..80b83d3b26fcda934ecccca29737fa09e8529ce3 100644 (file)
@@ -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")
+    }
+  }
 }