]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/portforwarder/templates/xinetd.erb
Manually cast
[dsa-puppet.git] / modules / portforwarder / templates / xinetd.erb
index 4cb2554a8a19fff255311324583a7a2396cf2b8e..179e753753dcd21f8f3461e3dbcfdc19bba8cbf7 100644 (file)
@@ -26,13 +26,13 @@ if config[fqdn]
                target_host = service['target_host']
                local_bind = service['source_bind_port']
 
-               lines << "# from #{sourcehost} on local port #{service['source_bind_port']}"
+               lines << "# to #{target_port}:target_host from local port #{local_bind}"
                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)
+                       p.gsub!('@@TARGET_PORT@@', target_port.to_s)
                        p.gsub!('@@LOCLA_BIND@@', local_bind)
                        lines << p
                end