]> gitweb.fluxo.info Git - puppet-shorewall.git/commitdiff
add postgres rules
authormh <mh@immerda.ch>
Sat, 3 Oct 2009 13:33:23 +0000 (15:33 +0200)
committerMicah Anderson <micah@riseup.net>
Mon, 7 Dec 2009 16:34:31 +0000 (11:34 -0500)
manifests/rules/out/postgres.pp [new file with mode: 0644]
manifests/rules/postgres.pp [new file with mode: 0644]

diff --git a/manifests/rules/out/postgres.pp b/manifests/rules/out/postgres.pp
new file mode 100644 (file)
index 0000000..a62d75d
--- /dev/null
@@ -0,0 +1,11 @@
+class shorewall::rules::out::postgres {
+    shorewall::rule {
+        'me-net-tcp_postgres':
+            source          =>  '$FW',
+            destination     =>  'net',
+            proto           =>  'tcp',
+            destinationport =>  '5432',
+            order           =>  240,
+            action          => 'ACCEPT';
+    }
+}
diff --git a/manifests/rules/postgres.pp b/manifests/rules/postgres.pp
new file mode 100644 (file)
index 0000000..1a22027
--- /dev/null
@@ -0,0 +1,10 @@
+class shorewall::rules::postgres {
+    shorewall::rule { 'net-me-tcp_postgres':
+        source          => 'net',
+        destination     => '$FW',
+        proto           => 'tcp',
+        destinationport => '5432',
+        order           => 250,
+        action          => 'ACCEPT';
+    }
+}