diff options
author | intrigeri <intrigeri@boum.org> | 2012-11-11 23:10:20 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2012-11-11 23:10:20 +0100 |
commit | 8080f1a892a69dc171187c8165d7e81f5b5b512d (patch) | |
tree | 6e610ec18aaa13f7797eedd08b03c852e49d8cfb /manifests/rules/out/ibackup.pp | |
parent | 911cc18e594bb5a3ab642ebb24615a0447050c32 (diff) | |
parent | 5052233d92e97263eab292408ed2602db0836d98 (diff) |
Merge remote-tracking branch 'riseup/master' into tmp
Conflicts:
manifests/init.pp
Diffstat (limited to 'manifests/rules/out/ibackup.pp')
-rw-r--r-- | manifests/rules/out/ibackup.pp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/manifests/rules/out/ibackup.pp b/manifests/rules/out/ibackup.pp index ec12c8b..856bcdb 100644 --- a/manifests/rules/out/ibackup.pp +++ b/manifests/rules/out/ibackup.pp @@ -1,13 +1,12 @@ -class shorewall::rules::out::ibackup { - case $shorewall_ibackup_host { - '': { fail("You need to define \$shorewall_ibackup_host for ${fqdn}") } - } - shorewall::rule { 'me-net-tcp_backupssh': - source => '$FW', - destination => "net:${shorewall_ibackup_host}", - proto => 'tcp', - destinationport => 'ssh', - order => 240, - action => 'ACCEPT'; - } +class shorewall::rules::out::ibackup( + $backup_host +){ + shorewall::rule { 'me-net-tcp_backupssh': + source => '$FW', + destination => "net:${backup_host}", + proto => 'tcp', + destinationport => 'ssh', + order => 240, + action => 'ACCEPT'; + } } |