Displaying 1 result from an estimated 1 matches for "mayo_firewall_insert".
2013 Oct 04
3
Converting augeas snippet to puppet augeas resource
...ables/table/append[8]/match = "tcp"
# /files/etc/sysconfig/iptables/table/append[8]/protocol = "tcp"
# /files/etc/sysconfig/iptables/table/append[8]/jump = "ACCEPT"
I''d like to convert this to a puppet augeas define. So far, I''ve got this:
define mayo_firewall_insert ($dport, $proto) {
augeas { "firewall_${title}":
context => "/files/etc/sysconfig/iptables/table",
# incl => "/etc/sysconfig/iptables",
# lens => "iptables.aug",
onlyif => "match append[dport=''$dport'...