Update Vagrantfile to use Go 1.7

This commit is contained in:
Christoph Blecker 2016-08-16 18:50:14 -07:00
parent e6d1e77a9a
commit cbc0334453
No known key found for this signature in database
GPG Key ID: B34A59A9D39F838B
1 changed files with 6 additions and 2 deletions

8
Vagrantfile vendored
View File

@ -5,7 +5,7 @@
VAGRANTFILE_API_VERSION = "2"
$script = <<SCRIPT
GOVERSION="1.6"
GOVERSION="1.7"
SRCROOT="/opt/go"
SRCPATH="/opt/gopath"
@ -37,9 +37,13 @@ export GOPATH="$SRCPATH"
export GOROOT="$SRCROOT"
export PATH="$SRCROOT/bin:$SRCPATH/bin:\$PATH"
EOF
cat <<EOF >>~/.bashrc
## After login, change to terraform directory
cd /opt/gopath/src/github.com/hashicorp/terraform
EOF
sudo mv /tmp/gopath.sh /etc/profile.d/gopath.sh
sudo chmod 0755 /etc/profile.d/gopath.sh
source /etc/profile.d/gopath.sh
SCRIPT
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|