Give the vagrant box a nice hostname for testing

This commit is contained in:
Jan Philipp Timme 2019-01-26 19:31:19 +01:00
parent 766453952f
commit 14aa470da1
1 changed files with 5 additions and 0 deletions

5
Vagrantfile vendored
View File

@ -7,6 +7,11 @@ Vagrant.configure("2") do |config|
config.vm.synced_folder "./", "/vagrant", type: "rsync" config.vm.synced_folder "./", "/vagrant", type: "rsync"
config.vm.provision "shell", inline: <<-SHELL 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 # Basic preparations
apt-get update apt-get update