diff options
author | drebs <drebs@riseup.net> | 2011-03-12 18:04:39 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2011-03-12 18:04:39 -0300 |
commit | 6d0cc2a36b1718a737bc88f08d7101eb101ee00b (patch) | |
tree | 5837ae00ae6dbba38454958ab78ca1a76da532ca /manifests/firewall.pp | |
parent | c250722de28cf556005b0d4103854d13cf781b56 (diff) | |
download | puppet-bootstrap-6d0cc2a36b1718a737bc88f08d7101eb101ee00b.tar.gz puppet-bootstrap-6d0cc2a36b1718a737bc88f08d7101eb101ee00b.tar.bz2 |
refactoring stages
Diffstat (limited to 'manifests/firewall.pp')
-rw-r--r-- | manifests/firewall.pp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/manifests/firewall.pp b/manifests/firewall.pp index 10f5988..124bb07 100644 --- a/manifests/firewall.pp +++ b/manifests/firewall.pp @@ -1,12 +1,15 @@ -import "config.pp" import "shorewall" -shorewall::rule { "ssh-02": - action => 'DNAT', - source => 'net', - destination => "vm:192.168.0.$context:22", - proto => 'tcp', - destinationport => "22$id", - ratelimit => '-', - order => "202", +class firewall { + include shorewall + + shorewall::rule { "ssh-02": + action => 'DNAT', + source => 'net', + destination => "vm:192.168.0.$context:22", + proto => 'tcp', + destinationport => "22$id", + ratelimit => '-', + order => "202", + } } |