projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Have name copied to longname if there is no longname
[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
c230bbc
..
5cb7662
100644
(file)
--- a/
modules/portforwarder/templates/authorized_keys.erb
+++ b/
modules/portforwarder/templates/authorized_keys.erb
@@
-1,3
+1,8
@@
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
<%=
def getportforwarderkey(host)
key = nil
<%=
def getportforwarderkey(host)
key = nil
@@
-24,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 =
keyinfo[sourcehost][0
]['ipHostNumber'].join(',')
+ remote_ip =
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}"