X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fportforwarder%2Ftemplates%2Fxinetd.erb;h=c2209355f2d4751cd9af11e8e1cd4d6dfc2d9506;hb=ebd78b64af71817821e84291b3c426c8d9ba1f2d;hp=179e753753dcd21f8f3461e3dbcfdc19bba8cbf7;hpb=4d204c88f0a0a81915d9db6e0ec59ae7b587cb0d;p=mirror%2Fdsa-puppet.git diff --git a/modules/portforwarder/templates/xinetd.erb b/modules/portforwarder/templates/xinetd.erb index 179e75375..c2209355f 100644 --- a/modules/portforwarder/templates/xinetd.erb +++ b/modules/portforwarder/templates/xinetd.erb @@ -1,3 +1,8 @@ +## +## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE. +## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git +## + <%= lines = [] @@ -14,7 +19,7 @@ template = 'service @@TARGET_HOST@@@@TARGET_PORT@@ group = portforwarder instances = 10 server = /usr/bin/ssh - server_args = -o PreferredAuthentications=publickey -o EscapeChar=none -C @@TARGET_HOST@@ : nothing + server_args = -o PreferredAuthentications=publickey -o EscapeChar=none -o BatchMode=yes -C @@TARGET_HOST@@ forward-to @@TARGET_PORT@@ cps = 0 0 } ' @@ -26,14 +31,14 @@ if config[fqdn] target_host = service['target_host'] local_bind = service['source_bind_port'] - lines << "# to #{target_port}:target_host from local port #{local_bind}" + lines << "# to #{target_port.to_s}:target_host from local port #{local_bind.to_s}" if target_port.nil? or target_host.nil? or local_bind.nil? lines << "# insufficient config values" else p = template.clone p.gsub!('@@TARGET_HOST@@', target_host) p.gsub!('@@TARGET_PORT@@', target_port.to_s) - p.gsub!('@@LOCLA_BIND@@', local_bind) + p.gsub!('@@LOCAL_BIND@@', local_bind.to_s) lines << p end end