Signed-off-by: Stephen Gran <steve@lobefin.net>
## 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 -%>
}
}
}