Packer templates for building Vagrant boxes customized by Evolix.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
323 B

#!/bin/sh
set -eu
useradd --uid 1000 --user-group --create-home vagrant
usermod -G sudo vagrant
umask 0077
mkdir /home/vagrant/.ssh
wget --output-document=/home/vagrant/.ssh/authorized_keys 'https://raw.githubusercontent.com/hashicorp/vagrant/master/keys/vagrant.pub'
chown --recursive vagrant:vagrant /home/vagrant/.ssh