From: Peter Palfrader Date: Fri, 13 Aug 2010 20:27:03 +0000 (+0200) Subject: Try some nat/redirect magic on sibelius X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=a97eb9eec4e89516f8958ad948adbc755f13aba0;p=mirror%2Fdsa-puppet.git Try some nat/redirect magic on sibelius --- diff --git a/modules/ferm/manifests/per-host.pp b/modules/ferm/manifests/per-host.pp index 3e07aecf7..a4ab0d943 100644 --- a/modules/ferm/manifests/per-host.pp +++ b/modules/ferm/manifests/per-host.pp @@ -195,6 +195,20 @@ class ferm::per-host { } } } + + # redirect snapshot into varnish + case $hostname { + sibelius: { + @ferm::rule { "dsa-snapshot-varnish": + rule => '&SERVICE(tcp, 11371)' + } + @ferm::rule { "dsa-snapshot-varnish": + table => 'nat' + chain => 'PREROUTING' + rule => 'proto tcp daddr 193.62.202.28 dport 80 REDIRECT to-ports 6081' + } + } + } } # vim:set et: