purp = ''
if scope.lookupvar('site::nodeinfo').has_key?('nameinfo')
- purp += wrap(scope.lookupvar('site::nodeinfo')['nameinfo']) + "\n\n"
+ purp += " " + wrap(scope.lookupvar('site::nodeinfo')['nameinfo']) + "\n"
end
ninfo = scope.lookupvar('site::nodeinfo')
-purp += 'Welcome to ' + fqdn
+purp += ' Welcome to ' + fqdn
if (scope.lookupvar('site::nodeinfo')['ldap'].has_key?('purpose'))
p = scope.lookupvar('site::nodeinfo')['ldap']['purpose'].clone()
extra = ''
else
phys_host = 'physical host'
end
- purp += wrap("This virtual server runs on the #{phys_host} #{ninfo['ldap']['physicalHost'][0]}, " +
+ purp += wrap(" This virtual server runs on the #{phys_host} #{ninfo['ldap']['physicalHost'][0]}, " +
"which is hosted at #{ninfo['hoster']['longname']}."
)
elsif scope.lookupvar('site::nodeinfo')['hoster']['name']
- purp += wrap("This server is hosted at #{ninfo['hoster']['longname']}.")
+ purp += wrap(" This server is hosted at #{ninfo['hoster']['longname']}.")
end
if scope.lookupvar('::cluster').to_s != 'undefined'
- purp += "\nThis server is a node in ganeti cluster: "
+ purp += "\n This server is a node in ganeti cluster: "
purp += scope.lookupvar('::cluster').to_s + ":\n"
purp += "\t" + scope.lookupvar('::cluster_nodes').to_s.split.sort.map{ |x| x.split('.')[0] }.join(", ") + ".\n"