I wonder how one debugs these things properly
[mirror/dsa-puppet.git] / modules / portforwarder / templates / authorized_keys.erb
index 20335b5..0a15aa6 100644 (file)
@@ -1,7 +1,10 @@
 <%=
+lines = []
 config = YAML.load(File.open('/etc/puppet/modules/portforwarder/misc/config.yaml').read)
 config.each_pair do |sourcehost, services|
+       lines << "# sourcehost is #{sourcehost}"
        services.each do |service|
+               lines << "# targethost is #{service['target_host']}, my hostname #{hostname}"
                next if service['target_host'] != hostname
 
                sshkey = nil
@@ -19,6 +22,5 @@ config.each_pair do |sourcehost, services|
                end
        end
 end
-lines = []
 lines.join("\n")
 %>