Only restart network once #1
@ -14,7 +14,11 @@ Vagrant.configure("2") do |config|
|
|||||||
config.vm.box = ENV['SCULLERY_BOX_NAME']
|
config.vm.box = ENV['SCULLERY_BOX_NAME']
|
||||||
config.vm.box_url = ENV['SCULLERY_BOX_IMAGE']
|
config.vm.box_url = ENV['SCULLERY_BOX_IMAGE']
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
systemctl restart network
|
if [ ! -f '/var/adm/scullery.configured' ]
|
||||||
|
then
|
||||||
|
systemctl restart network
|
||||||
|
touch /var/adm/scullery.configured
|
||||||
|
fi
|
||||||
SHELL
|
SHELL
|
||||||
if ENV['SCULLERY_MASTERS']
|
if ENV['SCULLERY_MASTERS']
|
||||||
ENV['SCULLERY_MASTERS'].split(',').each do |vmname|
|
ENV['SCULLERY_MASTERS'].split(',').each do |vmname|
|
||||||
|
Loading…
Reference in New Issue
Block a user