X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fmotd%2Ftemplates%2Fmotd.erb;h=7ddb539e90fe616ebd195a3d789c84ca11f0fd61;hb=9db4695b9e8d731c18d414a829c2594bcec38e8b;hp=3a0dfba30a71dc7437f8456ecfc2a0dd7ead69cd;hpb=4f48c5379ce98f842a8a8f87325eaf117be44f04;p=mirror%2Fdsa-puppet.git diff --git a/modules/motd/templates/motd.erb b/modules/motd/templates/motd.erb index 3a0dfba30..7ddb539e9 100644 --- a/modules/motd/templates/motd.erb +++ b/modules/motd/templates/motd.erb @@ -13,7 +13,7 @@ this machine you agree to abide by the Debian Machines Usage Policies <%= def wrap(s, width=78) - s.gsub(/(.{1,#{width}})(\s+|\Z)/, "\\1\n") + s.gsub(/(.{1,#{width}})(\s+|\Z)/, "\\1\n ") end def markup(l) @@ -126,19 +126,19 @@ end if classes.include?("porterbox") - purp += "\n Disk space on porter boxes is often limited. Please respect your fellow\n" + - " porters by cleaning up after yourself by deleting schroots and source/build\n" + - " trees in your $HOME, as soon as feasible. DSA reserves the right to recover\n" + - " disk space as necessary.\n" + purp += "\n " + wrap("Disk space on porter boxes is often limited. Please +respect your fellow porters by cleaning up after yourself by deleting +schroots and source/build trees in your $HOME, as soon as feasible. DSA +reserves the right to recover disk space as necessary.") + "\n" end if ninfo['not-bacula-client'] then - purp += "\n Note that this host is _NOT_ being backed up. If you care about your\n" + - " data, run your own backups.\n" + purp += "\n " + wrap("Note that this host is _NOT_ being backed up. If you +care about your data, run your own backups.") end if scope.lookupvar('site::nodeinfo').has_key?('footer') - purp += "\n" + wrap(scope.lookupvar('site::nodeinfo')['footer']) + "\n" + purp += "\n" + wrap(scope.lookupvar('site::nodeinfo')['footer']) end purp