Commit ddb4e09e authored by intrigeri's avatar intrigeri

Linting.

parent 27a5b24f
...@@ -5,10 +5,17 @@ class shorewall::rules::libvirt::host ( ...@@ -5,10 +5,17 @@ class shorewall::rules::libvirt::host (
) { ) {
define shorewall::rule::accept::from_vmz ( define shorewall::rule::accept::from_vmz (
$proto = '-', $destinationport = '-', $action = 'ACCEPT' ) { $proto = '-',
shorewall::rule { "$name": $destinationport = '-',
source => $vmz, destination => '$FW', order => 300, $action = 'ACCEPT'
proto => $proto, destinationport => $destinationport, action => $action; ) {
shorewall::rule { $name:
source => $shorewall::rules::libvirt::host::vmz,
destination => '$FW',
order => 300,
proto => $proto,
destinationport => $destinationport,
action => $action;
} }
} }
...@@ -32,9 +39,14 @@ class shorewall::rules::libvirt::host ( ...@@ -32,9 +39,14 @@ class shorewall::rules::libvirt::host (
} }
shorewall::rule::accept::from_vmz { shorewall::rule::accept::from_vmz {
'accept_dns_from_vmz': action => 'DNS(ACCEPT)'; 'accept_dns_from_vmz':
'accept_tftp_from_vmz': action => 'TFTP(ACCEPT)'; action => 'DNS(ACCEPT)';
'accept_puppet_from_vmz': proto => 'tcp', destinationport => '8140', action => 'ACCEPT'; 'accept_tftp_from_vmz':
action => 'TFTP(ACCEPT)';
'accept_puppet_from_vmz':
proto => 'tcp',
destinationport => '8140',
action => 'ACCEPT';
} }
if $debproxy_port { if $debproxy_port {
...@@ -48,8 +60,8 @@ class shorewall::rules::libvirt::host ( ...@@ -48,8 +60,8 @@ class shorewall::rules::libvirt::host (
if $masq_iface { if $masq_iface {
shorewall::masq { shorewall::masq {
"masq-${masq_iface}": "masq-${masq_iface}":
interface => "$masq_iface", interface => $masq_iface,
source => '10.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.168.0.0/16'; source => '10.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.168.0.0/16';
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment