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 scope.lookupvar('site::nodeinfo').has_key?('nameinfo')
22 purp += wrap(scope.lookupvar('site::nodeinfo')['nameinfo']) + "\n\n"
25 purp += 'Welcome to ' + fqdn
26 if (scope.lookupvar('site::nodeinfo')['ldap'].has_key?('purpose'))
27 p = scope.lookupvar('site::nodeinfo')['ldap']['purpose'].clone()
31 purp += ", the Debian "
32 if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture')
33 purp += scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0]
35 purp += " build daemon"
38 if p.delete('porterbox')
39 purp += ", the Debian "
40 if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture')
41 purp += scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0]
45 extra += "See 'dchroot -l' or 'schroot -l' for a list of available chroots.\n"
46 if scope.lookupvar('site::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 scope.lookupvar('site::nodeinfo')['ldap']['purpose'].sort.each do |l|
56 purp += "\t" + l + "\n"
69 if (scope.lookupvar('site::nodeinfo')['ldap'].has_key?('physicalHost'))
70 purp += wrap("This virtual server runs on the physical host #{nodeinfo['ldap']['physicalHost'][0]}, " +
71 "which is hosted at #{nodeinfo['hoster']['longname']}."
73 elsif scope.lookupvar('site::nodeinfo')['hoster']['name']
74 purp += wrap("This server is hosted at #{nodeinfo['hoster']['longname']}.")
79 scope.lookupvar('site::allnodeinfo').keys.sort.each do |node|
80 if scope.lookupvar('site::allnodeinfo')[node]['physicalHost'] and scope.lookupvar('site::allnodeinfo')[node]['physicalHost'].include?(fqdn)
85 purp += "\nThe following virtual machines run on this system:\n"
88 if scope.lookupvar('site::allnodeinfo')[node]['purpose']
90 scope.lookupvar('site::allnodeinfo')[node]['purpose'].sort.each do |l|
92 purp += "\t " + l + "\n"
101 if scope.lookupvar('site::nodeinfo').has_key?('footer')
102 purp += "\n" + wrap(scope.lookupvar('site::nodeinfo')['footer']) + "\n"
107 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
111 # vim:set sts=2 ts=2:
112 # vim:set shiftwidth=2: