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 if l =~ /\[\[(\*|-)?(.*?)\]\]/
18 if l =~ /\[\[(.*?)\|(.*?)\]\]/
25 if nodeinfo.has_key?('nameinfo')
26 purp += wrap(nodeinfo['nameinfo']) + "\n\n"
29 purp += 'Welcome to ' + fqdn
30 if (nodeinfo['ldap'].has_key?('purpose'))
31 if nodeinfo['ldap']['purpose'].include?('buildd')
32 purp += ", the Debian "
33 if nodeinfo['ldap'].has_key?('architecture')
34 purp += nodeinfo['ldap']['architecture'][0]
36 purp += " build daemon\n"
37 elsif nodeinfo['ldap']['purpose'].include?('porterbox')
38 purp += ", the Debian "
39 if nodeinfo['ldap'].has_key?('architecture')
40 purp += nodeinfo['ldap']['architecture'][0]
42 purp += " porterbox\n"
44 purp += "See 'dchroot -l' or 'schroot -l' for a list of available chroots.\n"
45 if nodeinfo['ldap'].has_key?('admin')
46 purp += "Please contact #{nodeinfo['ldap']['admin'][0]} for install requests,\n"
47 purp += "following the recommendations in <URL:http://dsa.debian.org/doc/install-req/>.\n"
50 purp += ", used for the following services:\n"
51 nodeinfo['ldap']['purpose'].sort.each do |l|
53 purp += "\t" + l + "\n"
60 if (nodeinfo['ldap'].has_key?('physicalHost'))
61 purp += "\nThis virtual server runs on the physical host #{nodeinfo['ldap']['physicalHost'][0]}.\n"
66 allnodeinfo.keys.sort.each do |node|
67 if allnodeinfo[node]['physicalHost'] and allnodeinfo[node]['physicalHost'].include?(fqdn)
72 purp += "\nThe following virtual machines run on this system:\n"
75 if allnodeinfo[node]['purpose']
77 allnodeinfo[node]['purpose'].sort.each do |l|
79 purp += "\t " + l + "\n"
88 if nodeinfo.has_key?('footer')
89 purp += "\n" + wrap(nodeinfo['footer']) + "\n"
94 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
99 # vim:set shiftwidth=2: