diff --git a/Vagrantfile b/Vagrantfile index c2b494c..4d65a1f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -49,5 +49,8 @@ Vagrant.configure(VAGRANT_CONFIG_VERSION) do |config| # SSH configuration d.has_ssh = true + + # Tell user to restart Docker container after Ansible provisioning + override.vm.provision "shell", path: "./docker/tell-user-to-reboot-vagrant.sh" end end diff --git a/docker/tell-user-to-reboot-vagrant.sh b/docker/tell-user-to-reboot-vagrant.sh new file mode 100644 index 0000000..13e0c57 --- /dev/null +++ b/docker/tell-user-to-reboot-vagrant.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +echo "*******************************************************************" +echo +echo +echo " If this is the first time provisioning the Docker container," +echo " PLEASE RESTART THE CONTAINER, so systemd services run properly!" +echo +echo " Run:" +echo +echo " $ vagrant halt && vagrant up --provider=docker" +echo +echo +echo "*******************************************************************"