Sha256: 1bc95bf3d4434f0ad02346cae18329f35b46d4c478165a4ad0be0d4226f2d965

Contents?: true

Size: 956 Bytes

Versions: 202

Compression:

Stored size: 956 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 and wget
pkg_add bash wget

# 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

202 entries across 202 versions & 1 rubygems

Version Path
image_optim_pack-0.5.1.20190105-x86_64-openbsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20190105-x86-openbsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20190105-x86_64-linux boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20190105-x86-linux boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20190105-x86-freebsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20190105-amd64-freebsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20190105-x86_64-darwin boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20190105-x86-darwin boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20190105 boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20181213-x86_64-openbsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20181213-x86-openbsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20181213-x86_64-linux boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20181213-x86-linux boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20181213-x86-freebsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20181213-amd64-freebsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20181213-x86_64-darwin boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20181213-x86-darwin boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20181213 boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20181208-x86_64-openbsd boxes/definitions/openbsd-postinstall.sh
image_optim_pack-0.5.1.20181208-x86-openbsd boxes/definitions/openbsd-postinstall.sh