Skip to content

Commit

Permalink
Fix output synced folder
Browse files Browse the repository at this point in the history
  • Loading branch information
electrocucaracha committed Jan 8, 2025
1 parent 8f6920a commit 58319b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Vagrant.configure('2') do |config|
config.vm.provider :virtualbox

config.vm.synced_folder './', '/vagrant'
config.vm.synced_folder './output', '/vagrant/output'
distros['linux'].each do |distro|
config.vm.define "#{distro['alias']}_#{vagrant_provider}" do |node|
node.vm.box = distro['name']
Expand Down Expand Up @@ -100,7 +101,6 @@ Vagrant.configure('2') do |config|
sh.inline = <<-SHELL
echo "Provision server"
set -o errexit
mkdir /vagrant/output
cd /vagrant/
PROVIDER=#{vagrant_provider} ./setup.sh | tee /vagrant/output/setup.log
SHELL
Expand Down Expand Up @@ -149,6 +149,7 @@ Vagrant.configure('2') do |config|

config.vm.provider :libvirt do |v, override|
override.vm.synced_folder './', '/vagrant', type: 'nfs', nfs_version: ENV.fetch('VAGRANT_NFS_VERSION', 3)
override.vm.synced_folder './output', '/vagrant/output', type: 'nfs', nfs_version: ENV.fetch('VAGRANT_NFS_VERSION', 3)
v.cpu_mode = 'host-passthrough'
v.nested = true
v.random_hostname = true
Expand Down

0 comments on commit 58319b2

Please sign in to comment.