Sha256: f95ca50fee120652f37e9b276775908ae172c19ea91a8d92082a61cbf092e868

Contents?: true

Size: 972 Bytes

Versions: 54

Compression:

Stored size: 972 Bytes

Contents

set -ex

date > /etc/vagrant_box_build_time

# set pkg path for users
export PKG_PATH=http://ftp3.usa.openbsd.org/pub/OpenBSD/`uname -r`/packages/`arch -s`/
echo "export PKG_PATH=$PKG_PATH" >> /root/.profile
echo "export PKG_PATH=$PKG_PATH" >> /home/vagrant/.profile

# install bash, wget and sudo
pkg_add -z bash wget sudo--

# set vagrant shell to bash
usermod -s /usr/local/bin/bash vagrant

# sudo
echo "# Uncomment to allow people in group wheel to run all commands without a password" >> /etc/sudoers
echo "%wheel        ALL=(ALL) NOPASSWD: SETENV: ALL" >> /etc/sudoers

# setup the vagrant key
mkdir -p /home/vagrant/.ssh
chmod 700 /home/vagrant/.ssh
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
chmod 600 /home/vagrant/.ssh/authorized_keys
chown -R vagrant.vagrant /home/vagrant/.ssh

perl -pi -e 's/(?<=:maxproc-(?:max|cur)=)\d+(?=:)/1024/' -- /etc/login.conf

/sbin/halt -p

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
image_optim_pack-0.5.6.20190728-x86_64-openbsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6.20190728-x86-openbsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6.20190728-x86_64-linux boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6.20190728-x86-linux boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6.20190728-x86-freebsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6.20190728-amd64-freebsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6.20190728-x86_64-darwin boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6.20190728-x86-darwin boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6.20190728 boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6-x86_64-openbsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6-x86-openbsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6-x86_64-linux boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6-x86-linux boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6-x86-freebsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6-amd64-freebsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6-x86_64-darwin boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6-x86-darwin boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.6 boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.5-x86_64-openbsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.5-x86_64-linux boxes/definitions/openbsd-postinstall.sh