]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
I wonder how one debugs these things properly
authorPeter Palfrader <peter@palfrader.org>
Sun, 21 Feb 2010 14:07:21 +0000 (15:07 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sun, 21 Feb 2010 14:07:21 +0000 (15:07 +0100)
modules/portforwarder/templates/authorized_keys.erb

index 94ad031c8671751b82a30452b10e239bb9493c0d..0a15aa661b712009958279493f2206d8c68270cf 100644 (file)
@@ -2,7 +2,9 @@
 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