Fix portforwarder inetd config for new puppet
authorJulien Cristau <jcristau@debian.org>
Sun, 19 Mar 2017 11:43:56 +0000 (12:43 +0100)
committerJulien Cristau <jcristau@debian.org>
Sun, 19 Mar 2017 11:45:30 +0000 (12:45 +0100)
modules/portforwarder/templates/xinetd.erb

index 93ba0af..4f0d2fa 100644 (file)
@@ -26,7 +26,7 @@ template = 'service @@TARGET_HOST@@@@TARGET_PORT@@
 
 config = YAML.load(File.open('/etc/puppet/modules/portforwarder/misc/config.yaml').read)
 if config[@fqdn]
-       config[fqdn].each do |service|
+       config[@fqdn].each do |service|
                target_port = service['target_port']
                target_host = service['target_host']
                local_bind = service['source_bind_port']