From: Peter Palfrader Date: Sun, 21 Feb 2010 14:07:21 +0000 (+0100) Subject: I wonder how one debugs these things properly X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;ds=sidebyside;h=641050bce2b5688e20bdf775b93c4d8c866d4ce9;p=mirror%2Fdsa-puppet.git I wonder how one debugs these things properly --- diff --git a/modules/portforwarder/templates/authorized_keys.erb b/modules/portforwarder/templates/authorized_keys.erb index 94ad031c8..0a15aa661 100644 --- a/modules/portforwarder/templates/authorized_keys.erb +++ b/modules/portforwarder/templates/authorized_keys.erb @@ -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