We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6d1e77 commit cbc0334Copy full SHA for cbc0334
1 file changed
Vagrantfile
@@ -5,7 +5,7 @@
5
VAGRANTFILE_API_VERSION = "2"
6
7
$script = <<SCRIPT
8
-GOVERSION="1.6"
+GOVERSION="1.7"
9
SRCROOT="/opt/go"
10
SRCPATH="/opt/gopath"
11
@@ -37,9 +37,13 @@ export GOPATH="$SRCPATH"
37
export GOROOT="$SRCROOT"
38
export PATH="$SRCROOT/bin:$SRCPATH/bin:\$PATH"
39
EOF
40
+cat <<EOF >>~/.bashrc
41
+
42
+## After login, change to terraform directory
43
+cd /opt/gopath/src/github.com/hashicorp/terraform
44
+EOF
45
sudo mv /tmp/gopath.sh /etc/profile.d/gopath.sh
46
sudo chmod 0755 /etc/profile.d/gopath.sh
-source /etc/profile.d/gopath.sh
47
SCRIPT
48
49
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
0 commit comments