Skip to content

Commit

Permalink
Permissions were wrong on mounted /vagrant in a Linux guest running o…
Browse files Browse the repository at this point in the history
…n a Windows host. Seemed to cause SSL cert issues to due invalid permissions.
  • Loading branch information
uksysadmin committed Jan 9, 2016
1 parent 6f6e39e commit 3780377
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
# configure swift and swift2 with container_sync configs (execute extra script at end)

# If dvr
# enable compute2
# configure compute and compute2 for dvr
# add second compute: 'compute' => [2,202]
# configure compute-01 and compute-01 for dvr

# Uncomment the next line to force use of VirtualBox provider when Fusion provider is present
# ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'
# Or specify --provide=virtualbox on command line

nodes = {
'controller' => [1, 200],
Expand All @@ -23,10 +24,21 @@ nodes = {

Vagrant.configure("2") do |config|

# Virtualbox
# Defaults
config.vm.box = "bunchc/trusty-x64"
config.vm.synced_folder ".", "/vagrant", type: "nfs"

# VirtualBox
config.vm.provider :virtualbox do |vbox, override|
override.vm.box = "bunchc/trusty-x64"
if Vagrant::Util::Platform.windows?
override.vm.synced_folder ".", "/vagrant", mount_options: ["dmode=700","fmode=700"]
else
override.vm.synced_folder ".", "/vagrant", type: "nfs"
end
end


# VMware Fusion / Workstation
config.vm.provider :vmware_fusion or config.vm.provider :vmware_workstation do |vmware, override|
override.vm.box = "bunchc/trusty-x64"
Expand Down

0 comments on commit 3780377

Please sign in to comment.