Last active
March 23, 2017 20:38
-
-
Save swade1987/00f5231debd60a98f86d75477d825d02 to your computer and use it in GitHub Desktop.
Prerequisites for the hands-on Kubernetes workshop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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:
- Go to https://www.terraform.io/downloads.html and download terraform.
- Find the downloaded file (terraform_0.9.1_darwin_amd64.zip) and unzip it
- 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
- Type
- Type
terraform
to see if you can run it.
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
Error on Mac step