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 if nodeinfo['ldap']['purpose'].include?('buildd')
28 purp += ", the Debian "
29 if nodeinfo['ldap'].has_key?('architecture')
30 purp += nodeinfo['ldap']['architecture'][0]
32 purp += " build daemon\n"
33 elsif nodeinfo['ldap']['purpose'].include?('porterbox')
34 purp += ", the Debian "
35 if nodeinfo['ldap'].has_key?('architecture')
36 purp += nodeinfo['ldap']['architecture'][0]
38 purp += " porterbox\n"
40 purp += "See 'dchroot -l' or 'schroot -l' for a list of available chroots.\n"
41 if nodeinfo['ldap'].has_key?('admin')
42 purp += "Please contact #{nodeinfo['ldap']['admin'][0]} for install requests,\n"
43 purp += "following the recommendations in <URL:http://dsa.debian.org/doc/install-req/>.\n"
46 purp += ", used for the following services:\n"
47 nodeinfo['ldap']['purpose'].sort.each do |l|
49 purp += "\t" + l + "\n"
56 if (nodeinfo['ldap'].has_key?('physicalHost'))
57 purp += "\nThis virtual server runs on the physical host #{nodeinfo['ldap']['physicalHost'][0]}.\n"
62 allnodeinfo.keys.sort.each do |node|
63 if allnodeinfo[node]['physicalHost'] and allnodeinfo[node]['physicalHost'].include?(fqdn)
68 purp += "\nThe following virtual machines run on this system:\n"
71 if allnodeinfo[node]['purpose']
73 allnodeinfo[node]['purpose'].sort.each do |l|
75 purp += "\t " + l + "\n"
84 if nodeinfo.has_key?('footer')
85 purp += "\n" + wrap(nodeinfo['footer']) + "\n"
90 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
95 # vim:set shiftwidth=2: