Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ def provision_bsd
SCRIPT
end

def provision_obsd
<<-SCRIPT
set -x
# set -e
. /root/.profile
/usr/sbin/pkg_add wget bash

#{install_go_source}
#{update_profile}
SCRIPT
end

def provision_solaris
<<-SCRIPT
set -x
Expand Down Expand Up @@ -126,6 +138,21 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
bsd.ssh.shell = "sh" # for provisioning
end

# Using RSync for synced/shared folders as OpenBSD doesn't support anything
# else, but `vagrant rsync` is a one-way mechanisms only. There is a plugin
# called rsync-back that might be used to get files back from the guest.
# An explicit `vagrant rsync obsd` is required, to update the code in a
# running guest (rsync will only be executed automatically on `vagrant up`
# and `vagrant reload`).
config.vm.define "obsd" do |obsd|
obsd.vm.box = "twingly/openbsd-6.2-amd64"
obsd.vm.synced_folder ".", "/home/vagrant/src",
:type => "rsync", :rsync__exclude => [".git"]
obsd.vm.synced_folder ".", "/vagrant", disabled: true
obsd.vm.provision :shell, :inline => provision_obsd
obsd.ssh.shell = "sh" # for provisioning
end

config.vm.define "solaris" do |solaris|
solaris.vm.box = "openindiana/hipster"
solaris.vm.synced_folder src_path, "/export/home/vagrant/src"
Expand Down