Skip to content
Snippets Groups Projects
Commit a2e9b07c authored by Stephen C Phillips's avatar Stephen C Phillips
Browse files

Adds NTP config to alternate vagrantfile

parent fdb01a04
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,21 @@ sed -i s/10.0.3/172.40.231/g /etc/default/lxc-net
sed -i s/#LXC_DHCP_CONFILE/LXC_DHCP_CONFILE/g /etc/default/lxc-net
service lxc-net restart
# enable NTP
# use network time to make sure we are synchronised
echo "Disabling timesyncd..."
timedatectl set-ntp no
until timedatectl | grep -m 1 "Network time on: no";
do
echo "Waiting for timesyncd to turn off.."
sleep 1
done
apt-get install ntp
echo "timesync set to ntpd"
# set timezone to London
timedatectl set-timezone Europe/London
SCRIPT
Vagrant.configure("2") do |config|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment