We are using Puppet to generate our /etc/motd file. Unfortunately the hostnames do not always have the same length.
This creates a /etc/motd with sometimes a space too much or too little after the hostname.
#############################################
## This server is managed from Amsterdam ##
#############################################
#############################################
## web-tst-01 ##
#############################################
What can be done so that the number of spaces is dynamically changed based on the length of the hostname?