projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33d6523
)
More data structure wrangling
author
Tollef Fog Heen
<tfheen@err.no>
Sat, 13 Apr 2019 20:09:41 +0000
(22:09 +0200)
committer
Tollef Fog Heen
<tfheen@err.no>
Sat, 13 Apr 2019 20:09:41 +0000
(22:09 +0200)
modules/ssh/templates/sshd_config.erb
patch
|
blob
|
history
diff --git
a/modules/ssh/templates/sshd_config.erb
b/modules/ssh/templates/sshd_config.erb
index
e51a8f6
..
cbc2d01
100644
(file)
--- a/
modules/ssh/templates/sshd_config.erb
+++ b/
modules/ssh/templates/sshd_config.erb
@@
-54,10
+54,12
@@
Match Address <%=
dbs = []
allnodeinfo.keys.sort.each do |node|
next unless allnodeinfo[node].has_key?('ipHostNumber')
- if allnodeinfo[node]['ipHostNumber'] =~ ":"
- dbs << "#{allnodeinfo[node]['ipHostNumber']}/128"
- else
- dbs << "#{allnodeinfo[node]['ipHostNumber']}/32"
+ allnodeinfo[node]['ipHostNumber'].each do |ipnum|
+ if ipnum =~ ":"
+ dbs << "#{ipnum}/128"
+ else
+ dbs << "#{ipnum}/32"
+ end
end
end
dbs.flatten.join(',')