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 ninfo = scope.lookupvar('site::nodeinfo')
27 purp += 'Welcome to ' + fqdn
28 if (scope.lookupvar('site::nodeinfo')['ldap'].has_key?('purpose'))
29 p = scope.lookupvar('site::nodeinfo')['ldap']['purpose'].clone()
33 purp += ", the Debian "
34 if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture')
35 purp += scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0]
37 purp += " build daemon"
40 if p.delete('porterbox')
41 purp += ", the Debian "
42 if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture')
43 purp += scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0]
47 extra += "See 'dchroot -l' or 'schroot -l' for a list of available chroots.\n"
48 if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('admin')
49 extra += "Please contact #{ninfo['ldap']['admin'][0]} for install requests,\n"
50 extra += "following the recommendations in <URL:http://dsa.debian.org/doc/install-req/>.\n"
55 purp += ", used for the following services:\n"
56 scope.lookupvar('site::nodeinfo')['ldap']['purpose'].sort.each do |l|
58 purp += "\t" + l + "\n"
71 if (scope.lookupvar('site::nodeinfo')['ldap'].has_key?('physicalHost'))
72 purp += wrap("This virtual server runs on the physical host #{ninfo['ldap']['physicalHost'][0]}, " +
73 "which is hosted at #{ninfo['hoster']['longname']}."
75 elsif scope.lookupvar('site::nodeinfo')['hoster']['name']
76 purp += wrap("This server is hosted at #{ninfo['hoster']['longname']}.")
81 scope.lookupvar('site::allnodeinfo').keys.sort.each do |node|
82 if scope.lookupvar('site::allnodeinfo')[node]['physicalHost'] and scope.lookupvar('site::allnodeinfo')[node]['physicalHost'].include?(fqdn)
87 purp += "\nThe following virtual machines run on this system:\n"
90 if scope.lookupvar('site::allnodeinfo')[node]['purpose']
92 scope.lookupvar('site::allnodeinfo')[node]['purpose'].sort.each do |l|
94 purp += "\t " + l + "\n"
103 if scope.lookupvar('site::nodeinfo').has_key?('footer')
104 purp += "\n" + wrap(scope.lookupvar('site::nodeinfo')['footer']) + "\n"
109 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
113 # vim:set sts=2 ts=2:
114 # vim:set shiftwidth=2: