Skip to content

Instantly share code, notes, and snippets.

@vsc1t
Created July 7, 2019 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vsc1t/8fbf37a46453da99477f039e1c3e39b9 to your computer and use it in GitHub Desktop.
Save vsc1t/8fbf37a46453da99477f039e1c3e39b9 to your computer and use it in GitHub Desktop.
Terraform add vscale provider
#!/usr/bin/env bash
# Automatic install vscale provider for terraform
# GOPATH should be configured before launch
source ~/.profile
sudo apt-get update && sudo apt-get install git -y && \
mkdir -p "$GOPATH"/src/github.com/terraform-providers/terraform-provider-vscale && \
git clone https://github.com/burkostya/terraform-provider-vscale.git \
"$GOPATH"/src/github.com/terraform-providers/terraform-provider-vscale && \
cd "$GOPATH"/src/github.com/terraform-providers/terraform-provider-vscale && \
go get ./... && go build && mkdir -p ~/.terraform.d/plugins && \
mv -f "$GOPATH"/bin/terraform-provider-vscale ~/.terraform.d/plugins/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment