mirror of https://github.com/ceph/ceph-ansible.git
testing: parse and set DISABLE_SYNCED_FOLDER in vagrant file
Signed-off-by: Alfredo Deza <adeza@redhat.com>pull/1092/head
parent
5df60b5907
commit
f6c788b4d1
|
@ -30,6 +30,7 @@ DOCKER = settings['docker']
|
||||||
USER = settings['ssh_username']
|
USER = settings['ssh_username']
|
||||||
|
|
||||||
ASSIGN_STATIC_IP = !(BOX == 'openstack' or BOX == 'linode')
|
ASSIGN_STATIC_IP = !(BOX == 'openstack' or BOX == 'linode')
|
||||||
|
DISABLE_SYNCED_FOLDER = settings.fetch('vagrant_disable_synced_folder', false)
|
||||||
|
|
||||||
ansible_provision = proc do |ansible|
|
ansible_provision = proc do |ansible|
|
||||||
if DOCKER then
|
if DOCKER then
|
||||||
|
@ -126,9 +127,14 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
config.ssh.private_key_path = settings['ssh_private_key_path']
|
config.ssh.private_key_path = settings['ssh_private_key_path']
|
||||||
config.ssh.username = USER
|
config.ssh.username = USER
|
||||||
|
|
||||||
# Faster bootup. Disable if you need this for libvirt
|
# Faster bootup. Disables mounting the sync folder for libvirt and virtualbox
|
||||||
config.vm.provider :libvirt do |v,override|
|
if DISABLE_SYNCED_FOLDER
|
||||||
override.vm.synced_folder '.', SYNC_DIR, disabled: true
|
config.vm.provider :virtualbox do |v,override|
|
||||||
|
override.vm.synced_folder '.', SYNC_DIR, disabled: true
|
||||||
|
end
|
||||||
|
config.vm.provider :libvirt do |v,override|
|
||||||
|
override.vm.synced_folder '.', SYNC_DIR, disabled: true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if BOX == 'openstack'
|
if BOX == 'openstack'
|
||||||
|
|
Loading…
Reference in New Issue