Skip to content

Instantly share code, notes, and snippets.

@swade1987
Last active March 23, 2017 20:38
Show Gist options
  • Save swade1987/00f5231debd60a98f86d75477d825d02 to your computer and use it in GitHub Desktop.
Save swade1987/00f5231debd60a98f86d75477d825d02 to your computer and use it in GitHub Desktop.
Prerequisites for the hands-on Kubernetes workshop
If you don't already have brew installed execute:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then execute the following commands:
brew tap unofficial-cask/hashicorp-tap https://github.com/unofficial-cask/hashicorp-tap.git
brew install cask terraform
1. Terraform
Open a Powershell window as Administrator and execute `Set-ExecutionPolicy unrestricted`
To locate the version of PowerShell you are running execute the following command:
$ $PSVersionTable.PSVersion
If you are running PowerShell v2 execute the following command:
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
If you are running PowerShell v3 or above execute the following command:
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
Once Chocolatey is installed execute the following commands:
choco install terraform -y
choco install git.install -y
2. Pageant
Download and install Pageant from http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
@bizmate
Copy link

bizmate commented Mar 14, 2017

Error on Mac step

$ brew cask install terraform
Error: Unknown command: cask

@oliverwehrens
Copy link

@devNoiseConsulting
Copy link

For a mac, if you don't want to install or have brew you can install it from a zip file from HashiCorp. Here are some manual instructions:

  1. Go to https://www.terraform.io/downloads.html and download terraform.
  2. Find the downloaded file (terraform_0.9.1_darwin_amd64.zip) and unzip it
  3. Move the binary (terrform) to a location that is in your path for your shell.
    • Type echo $PATH into your shell to see your locations.
      • /usr/local/bin
      • /opt/local/bin
      • ~/bin
  4. Type terraform to see if you can run it.

@marttinen
Copy link

For Mac users: There is now terraform in the normal recipes, so there is no need anymore to add the hashicorp-tap via cask, a normal brew install terraform should do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment