Because I can. Also, I was inspired by this article.
- Edit host-data.txt file, it will be appended to final MOTDs.
If you wish to use variables, put their names between
##. For example##PUBLIC_IP##will be replaced byPUBLIC_IPshell variable duringupdate-motdscript action. - Edit motd-variables file, and set all the variables which you defined in previous file.
- Fire
vagrant upand wait for the script to finish.
- Set a desired hostname on your machine i.e.
hostnamectl set-hostname blanka - Copy all contents of the
distdirectory (preserving directory structure) to/etc/update-motd.d/on the desired machine. - Install
update-motdi.e.apt-get install update-motd
