Give the vagrant box a nice hostname for testing

This commit is contained in:
JPT committed 2019-01-26 19:31:19 +01:00
1 parent 766453952f
commit 14aa470da1
1 file changed
+5
Vendored
+5
View File
@@ -7,6 +7,11 @@ Vagrant.configure("2") do |config|
config.vm.synced_folder "./", "/vagrant", type: "rsync"
config.vm.provision "shell", inline: <<-SHELL
# Give that vagrant box an apparently good FQDN
echo "local-vagrant.example.com" > /etc/hostname
echo "local-vagrant.example.com" > /etc/mailname
hostnamectl set-hostname local-vagrant.example.com
# Basic preparations
apt-get update