Remove exploratory code for now
authorTollef Fog Heen <tfheen@err.no>
Sat, 13 Apr 2019 20:17:01 +0000 (22:17 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sat, 13 Apr 2019 20:17:01 +0000 (22:17 +0200)
modules/ssh/templates/sshd_config.erb

index ea08324..e96591d 100644 (file)
@@ -49,23 +49,6 @@ AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u /etc/ssh/userk
 
 PasswordAuthentication no
 
-# Match Address <%=
-  allnodeinfo = scope.lookupvar('site::allnodeinfo')
-  dbs = []
-  allnodeinfo.keys.sort.each do |node|
-      next unless allnodeinfo[node].has_key?('ipHostNumber')
-      allnodeinfo[node]['ipHostNumber'].each do |ipnum|
-          if ipnum =~ /:/
-              dbs << "#{ipnum}/128"
-          else
-              dbs << "#{ipnum}/32"
-          end
-      end
-  end
-  dbs.flatten.join(',')
-%>
-#  Banner "You're coming from a debian.org host."
-
 Match Group sftponly
   AllowStreamLocalForwarding no
   AllowTCPForwarding no