Merge pull request #8247 from cblecker/vagrant-go1.7
Update Vagrantfile to use Go 1.7
This commit is contained in:
commit
d601330591
|
@ -5,7 +5,7 @@
|
||||||
VAGRANTFILE_API_VERSION = "2"
|
VAGRANTFILE_API_VERSION = "2"
|
||||||
|
|
||||||
$script = <<SCRIPT
|
$script = <<SCRIPT
|
||||||
GOVERSION="1.6"
|
GOVERSION="1.7"
|
||||||
SRCROOT="/opt/go"
|
SRCROOT="/opt/go"
|
||||||
SRCPATH="/opt/gopath"
|
SRCPATH="/opt/gopath"
|
||||||
|
|
||||||
|
@ -37,9 +37,13 @@ export GOPATH="$SRCPATH"
|
||||||
export GOROOT="$SRCROOT"
|
export GOROOT="$SRCROOT"
|
||||||
export PATH="$SRCROOT/bin:$SRCPATH/bin:\$PATH"
|
export PATH="$SRCROOT/bin:$SRCPATH/bin:\$PATH"
|
||||||
EOF
|
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 mv /tmp/gopath.sh /etc/profile.d/gopath.sh
|
||||||
sudo chmod 0755 /etc/profile.d/gopath.sh
|
sudo chmod 0755 /etc/profile.d/gopath.sh
|
||||||
source /etc/profile.d/gopath.sh
|
|
||||||
SCRIPT
|
SCRIPT
|
||||||
|
|
||||||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
|
|
Loading…
Reference in New Issue