|
|
|
|
@ -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|
|
|
|
|
|
|