Skip to content

Commit

Permalink
Environments
Browse files Browse the repository at this point in the history
  • Loading branch information
danielehc committed May 12, 2020
1 parent 5941f72 commit 7b5687b
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
33 changes: 33 additions & 0 deletions environments/hashistack-ent/build/1_hashicorp_tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

# Download and install a binary.
#
# Arguments:
# - Name of binary ("consul")
# - URL of zipfile ("https://example.com/consul.zip")
#
install_zip()
{
NAME="$1"
DOWNLOAD_URL="$2"

curl -L -o ~/$NAME.zip $DOWNLOAD_URL
sudo unzip -d /usr/local/bin/ ~/$NAME.zip
sudo chmod +x /usr/local/bin/$NAME
rm ~/$NAME.zip
}

install_zip "consul" "https://releases.hashicorp.com/consul/1.7.2+ent/consul_1.7.2+ent_linux_amd64.zip"

install_zip "nomad" "https://releases.hashicorp.com/nomad/0.10.4/nomad_0.10.4_linux_amd64.zip"

install_zip "terraform" "https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_linux_amd64.zip"

install_zip "vault" "https://releases.hashicorp.com/vault/1.4.0+ent/vault_1.4.0+ent_linux_amd64.zip"

install_zip "consul-template" "https://releases.hashicorp.com/consul-template/0.24.1/consul-template_0.24.1_linux_amd64.zip"

install_zip "envconsul" "https://releases.hashicorp.com/envconsul/0.9.2/envconsul_0.9.2_linux_amd64.zip"

install_zip "sentinel" "https://releases.hashicorp.com/sentinel/0.15.2/sentinel_0.15.2_linux_amd64.zip"

install_zip "packer" "https://releases.hashicorp.com/packer/1.5.1/packer_1.5.1_linux_amd64.zip"
1 change: 1 addition & 0 deletions environments/hashistack-ent/katacoda.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
base: 'ubuntu1604'
33 changes: 33 additions & 0 deletions environments/hashistack/build/1_hashicorp_tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

# Download and install a binary.
#
# Arguments:
# - Name of binary ("consul")
# - URL of zipfile ("https://example.com/consul.zip")
#
install_zip()
{
NAME="$1"
DOWNLOAD_URL="$2"

curl -L -o ~/$NAME.zip $DOWNLOAD_URL
sudo unzip -d /usr/local/bin/ ~/$NAME.zip
sudo chmod +x /usr/local/bin/$NAME
rm ~/$NAME.zip
}

install_zip "consul" "https://releases.hashicorp.com/consul/1.7.2/consul_1.7.2_linux_amd64.zip"

install_zip "nomad" "https://releases.hashicorp.com/nomad/0.10.4/nomad_0.10.4_linux_amd64.zip"

install_zip "terraform" "https://releases.hashicorp.com/terraform/0.12.24/terraform_0.12.24_linux_amd64.zip"

install_zip "vault" "https://releases.hashicorp.com/vault/1.4.0/vault_1.4.0_linux_amd64.zip"

install_zip "consul-template" "https://releases.hashicorp.com/consul-template/0.24.0/consul-template_0.24.0_linux_amd64.zip"

install_zip "envconsul" "https://releases.hashicorp.com/envconsul/0.9.2/envconsul_0.9.2_linux_amd64.zip"

install_zip "sentinel" "https://releases.hashicorp.com/sentinel/0.14.3/sentinel_0.14.3_linux_amd64.zip"

install_zip "packer" "https://releases.hashicorp.com/packer/1.5.1/packer_1.5.1_linux_amd64.zip"
1 change: 1 addition & 0 deletions environments/hashistack/katacoda.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
base: 'ubuntu1604'

0 comments on commit 7b5687b

Please sign in to comment.