Merge pull request #8247 from cblecker/vagrant-go1.7

Update Vagrantfile to use Go 1.7
This commit is contained in:
James Nugent 2016-08-17 15:52:17 +01:00 committed by GitHub
commit d601330591
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|