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

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