]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
break d.o firewalls everywhere
authorStephen Gran <steve@lobefin.net>
Mon, 1 Jul 2013 11:27:51 +0000 (12:27 +0100)
committerStephen Gran <steve@lobefin.net>
Mon, 1 Jul 2013 11:27:51 +0000 (12:27 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/ferm/templates/ferm-rule.erb

index 235b8e329112ab7dbdea5cf2d551674251392106..bae5b17e8878575d5a0b7a13825c855c9915f59f 100644 (file)
@@ -3,11 +3,21 @@
 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
 ##
 
-domain <%= domain %> {
-       table <%= table %> {
-               chain <%= chain %> {
-                       <%= rule %><% unless notarule -%>;<% end -%>
-
+<%
+       output = @rule
+       if @description.length > 0
+               output += ' mod comment comment "'
+               output += @description
+               output += '"'
+       end
+       unless @notarule
+               output += ';'
+       end
+-%>
+domain <%= @domain %> {
+       table <%= @table %> {
+               chain <%= @chain %> {
+                       <%= output -%>
                }
        }
 }