This device is for authorized users only. All traffic on this device
is monitored and will be used as evidence for prosecutions. By using
this machine you agree to abide by the Debian Machines Usage Policies
This device is for authorized users only. All traffic on this device
is monitored and will be used as evidence for prosecutions. By using
this machine you agree to abide by the Debian Machines Usage Policies
-if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture')
- arch = scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0]
+if scope.lookupvar('deprecated::nodeinfo')['ldap'].has_key?('architecture')
+ arch = scope.lookupvar('deprecated::nodeinfo')['ldap']['architecture'][0]
-if scope.lookupvar('site::nodeinfo').has_key?('nameinfo')
- purp += " " + wrap(scope.lookupvar('site::nodeinfo')['nameinfo']) + "\n"
+if scope.lookupvar('deprecated::nodeinfo').has_key?('nameinfo')
+ purp += " " + wrap(scope.lookupvar('deprecated::nodeinfo')['nameinfo']) + "\n"
-extra = 'Welcome to ' + fqdn
-if (scope.lookupvar('site::nodeinfo')['ldap'].has_key?('purpose'))
- p = scope.lookupvar('site::nodeinfo')['ldap']['purpose'].clone()
+extra = 'Welcome to ' + @fqdn
+if (scope.lookupvar('deprecated::nodeinfo')['ldap'].has_key?('purpose'))
+ p = scope.lookupvar('deprecated::nodeinfo')['ldap']['purpose'].clone()
purp += wrap(" This virtual server runs on the #{phys_host} #{ninfo['ldap']['physicalHost'][0]}, " +
"which is hosted at #{ninfo['hoster']['longname']}."
)
purp += wrap(" This virtual server runs on the #{phys_host} #{ninfo['ldap']['physicalHost'][0]}, " +
"which is hosted at #{ninfo['hoster']['longname']}."
)
-scope.lookupvar('site::allnodeinfo').keys.sort.each do |node|
- if scope.lookupvar('site::allnodeinfo')[node]['physicalHost'] and scope.lookupvar('site::allnodeinfo')[node]['physicalHost'].include?(fqdn)
+scope.lookupvar('deprecated::allnodeinfo').keys.sort.each do |node|
+ if scope.lookupvar('deprecated::allnodeinfo')[node]['physicalHost'] and scope.lookupvar('deprecated::allnodeinfo')[node]['physicalHost'].include?(@fqdn)
purp += "\n " + wrap("Disk space on porter boxes is often limited. Please respect your fellow porters by cleaning up after yourself and deleting schroots and source/build trees in your ~ as soon as feasible. DSA reserves the right to recover disk space as necessary. See <URL:https://dsa.debian.org/doc/schroot/> for a brief tutorial on using schroot. There may be chroots for architectures other than #{arch} available, please list available chroots to check.")
end
purp += "\n " + wrap("Disk space on porter boxes is often limited. Please respect your fellow porters by cleaning up after yourself and deleting schroots and source/build trees in your ~ as soon as feasible. DSA reserves the right to recover disk space as necessary. See <URL:https://dsa.debian.org/doc/schroot/> for a brief tutorial on using schroot. There may be chroots for architectures other than #{arch} available, please list available chroots to check.")
end
-if scope.lookupvar('site::nodeinfo').has_key?('footer')
- purp += "\n" + wrap(scope.lookupvar('site::nodeinfo')['footer'])
+if scope.lookupvar('deprecated::nodeinfo').has_key?('footer')
+ purp += "\n" + wrap(scope.lookupvar('deprecated::nodeinfo')['footer'])