]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/portforwarder/templates/authorized_keys.erb
fqdn instead of hostname
[dsa-puppet.git] / modules / portforwarder / templates / authorized_keys.erb
index 0a15aa661b712009958279493f2206d8c68270cf..0bfc8c1a94fd8fff4d709e7a28e1768ca400fb19 100644 (file)
@@ -4,8 +4,8 @@ config = YAML.load(File.open('/etc/puppet/modules/portforwarder/misc/config.yaml
 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
+               lines << "# targethost is #{service['target_host']}, my hostname #{hostname}, fqdn is #{fqdn}"
+               next if service['target_host'] != fqdn
 
                sshkey = nil
                remote_ip = keyinfo[sourcehost][0]['ipHostNumber'].join(',')