projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make printf debug prettier
[mirror/dsa-puppet.git]
/
modules
/
portforwarder
/
templates
/
authorized_keys.erb
diff --git
a/modules/portforwarder/templates/authorized_keys.erb
b/modules/portforwarder/templates/authorized_keys.erb
index
d119bf2
..
1ffd9e8
100644
(file)
--- a/
modules/portforwarder/templates/authorized_keys.erb
+++ b/
modules/portforwarder/templates/authorized_keys.erb
@@
-29,7
+29,7
@@
config.each_pair do |sourcehost, services|
if allowed_ports.length > 0
sshkey = getportforwarderkey(sourcehost)
if allowed_ports.length > 0
sshkey = getportforwarderkey(sourcehost)
- remote_ip =
ldapall
[sourcehost]['ipHostNumber'].join(',')
+ remote_ip =
scope.lookupvar('site::allnodeinfo')
[sourcehost]['ipHostNumber'].join(',')
local_bind = '127.101.%d.%d'%[ (sourcehost.hash / 256 % 256), sourcehost.hash % 256 ]
lines << "# from #{sourcehost}"
local_bind = '127.101.%d.%d'%[ (sourcehost.hash / 256 % 256), sourcehost.hash % 256 ]
lines << "# from #{sourcehost}"