2 This device is for authorized users only. All traffic on this device
3 is monitored and will be used as evidence for prosecutions. By using
4 this machine you agree to abide by the Debian Machines Usage Policies
5 <URL:http://www.debian.org/devel/dmup>.
7 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11 s.gsub(/(.{1,#{width}})(\s+|\Z)/, "\\1\n")
15 l = l.gsub(/\[\[(.*?)\|(.*?)\]\]/, '\2')
16 l = l.gsub(/\[\[(\*|-)?(.*?)\]\]/, '\2')
21 if nodeinfo.has_key?('nameinfo')
22 purp += wrap(nodeinfo['nameinfo']) + "\n\n"
25 purp += 'Welcome to ' + fqdn
26 if (nodeinfo['ldap'].has_key?('purpose'))
27 p = nodeinfo['ldap']['purpose'].clone()
31 purp += ", the Debian "
32 if nodeinfo['ldap'].has_key?('architecture')
33 purp += nodeinfo['ldap']['architecture'][0]
35 purp += " build daemon\n"
38 if p.delete('porterbox')
39 purp += ", the Debian "
40 if nodeinfo['ldap'].has_key?('architecture')
41 purp += nodeinfo['ldap']['architecture'][0]
43 purp += " porterbox\n"
45 extra += "See 'dchroot -l' or 'schroot -l' for a list of available chroots.\n"
46 if nodeinfo['ldap'].has_key?('admin')
47 extra += "Please contact #{nodeinfo['ldap']['admin'][0]} for install requests,\n"
48 extra += "following the recommendations in <URL:http://dsa.debian.org/doc/install-req/>.\n"
53 purp += ", used for the following services:\n"
54 nodeinfo['ldap']['purpose'].sort.each do |l|
56 purp += "\t" + l + "\n"
67 if (nodeinfo['ldap'].has_key?('physicalHost'))
68 purp += wrap("This virtual server runs on the physical host #{nodeinfo['ldap']['physicalHost'][0]}." +
69 "It is hosted at #{nodeinfo['hoster']['longname']}."
71 elsif nodeinfo['hoster']['name']
72 purp += wrap("This server is hosted at #{nodeinfo['hoster']['longname']}.")
77 allnodeinfo.keys.sort.each do |node|
78 if allnodeinfo[node]['physicalHost'] and allnodeinfo[node]['physicalHost'].include?(fqdn)
83 purp += "\nThe following virtual machines run on this system:\n"
86 if allnodeinfo[node]['purpose']
88 allnodeinfo[node]['purpose'].sort.each do |l|
90 purp += "\t " + l + "\n"
99 if nodeinfo.has_key?('footer')
100 purp += "\n" + wrap(nodeinfo['footer']) + "\n"
105 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
109 # vim:set sts=2 ts=2:
110 # vim:set shiftwidth=2: