Helm charts for supporting clustering in ODL
[integration/packaging.git] / packer / provision / config_vagrant.sh
1 #!/usr/bin/env bash
2 # Called by Packer to config a CentOS 7 machine for use as a Vagrant base box
3
4 # Echo commands as they are run
5 set -x
6
7 # Install SSH key used by Vagrant for all interactions that connect to the box
8 install -v -o vagrant -g vagrant -m 0700 -d /home/vagrant/.ssh
9 curl -o /home/vagrant/.ssh/authorized_keys -kL "https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub"
10 chmod 600 /home/vagrant/.ssh/authorized_keys
11 chown -R vagrant:vagrant /home/vagrant/.ssh