Created
May 8, 2014 15:38
-
-
Save viq/84e66465b62705c7b671 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.define :i386 do |i386| | |
RELEASE="current" | |
i386.vm.box = "obsd-current-i386" | |
i386.vm.network :private_network, ip: "192.168.50.4", type: "static" | |
i386.vm.synced_folder "~/Work/OpenBSD/packages/#{RELEASE}", "/usr/ports/packages", :nfs => true | |
end | |
config.vm.define :amd64 do |amd64| | |
RELEASE="current" | |
amd64.vm.box = "obsd-current-amd64" | |
amd64.vm.network :private_network, ip: "192.168.50.5", type: "static" | |
amd64.vm.synced_folder "~/Work/OpenBSD/packages/#{RELEASE}", "/usr/ports/packages", :nfs => true | |
end | |
config.vm.define :amd64_55 do |amd64_55| | |
RELEASE="55" | |
amd64_55.vm.box = "obsd-55-amd64" | |
amd64_55.vm.network :private_network, ip: "192.168.50.6", type: "static" | |
amd64_55.vm.synced_folder "~/Work/OpenBSD/packages/#{RELEASE}", "/usr/ports/packages", :nfs => true | |
end | |
config.vm.provider :virtualbox do |v| | |
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
v.customize ["modifyvm", :id, "--memory", 512] | |
end | |
## For masterless, mount your file roots file root | |
#config.vm.synced_folder "salt/roots/", "/srv/" | |
#config.vm.synced_folder "./openbsd-wip", "/usr/ports/openbsd-wip", nfs: true | |
# THIS WORKS: | |
config.vm.synced_folder "./vagrant", "/vagrant", id: "root", :nfs => true | |
config.vm.synced_folder "~/Work/OpenBSD/distfiles", "/usr/ports/distfiles", :nfs => true | |
#config.vm.synced_folder "~/Work/OpenBSD/packages/#{RELEASE}", "/usr/ports/packages", :nfs => true | |
config.vm.synced_folder "~/Work/OpenBSD/openbsd-wip", "/usr/ports/openbsd-wip", :nfs => true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment