Workstation Setup
We will be going through creating resources and installing tools on your PC/Mac.
stateDiagram-v2
direction LR
state PrepWorkstation {
[*] --> GenrateRSAKeys
GenrateRSAKeys --> InstallTofu
InstallTofu --> InstallVSCode
InstallVSCode --> [*]
}
[*] --> PrepWorkstation
PrepWorkstation --> DeployJumpHost : Next section
Note
These are the only binaries that you will need to install on your workstation or any other OS to get the jump host VM running.
- Create RSA key pair We will need a RSA key pair to connect to the jumphost
- Install Visual Studio Code (VSC)
- Install OpenTofu on Linux
Generate a RSA Key Pair
Based on your local workstation OS, follow these instuctions to:
-
Run the following command to generate an RSA key pair.
-
[Optional] Modify or Accept the default file location as
~/.ssh/id_rsa
-
If the default file location was accepted, the keys will be in the following location:
On Windows machine, See Generate a RSA key pair on Windows example.
Install OpenTofu
OpenTofu is a fork of Terraform that is open-source, community-driven, and managed by the Linux Foundation and is used to simplify provisioning resources using the Nutanix Terraform Provider while following Infrastructure as Code (IaC) practices.
To Install OpenTofu, follow the steps below for your respective local workstation:
Install Visual Studio Code (VSCode)
We will be doing all the labs by connecting to your jump host using VSCode
remote shell environment. This allows for easy browsing and editing of configuration files. For additional details, see Visual Studio Code
Having a rich text editor capable of integrating with the rest of our tools, and providing markup to the different source code file types will provide significant value in upcoming exercises and is a much simpler experience for most users compared to command line text editors.
If you don't already have VSCode
installed on your local, you can either Download and Install VSCode or choose to follow one of the steps belows:
-
If you do not have
brew
macOS package manager installed, use the following command to install it inTerminal
. For additional details, see HomeBrew Installation Docs.
-
If you do not have
choco
Windows package manager installed, use the following command to install it inPowerShell
. For additional details, see Chocolatey Installation Docs.
The steps above leverage HomeBrew Package Manager for macOS and Chocolatey Package Manager for Windows respectively to install VSCode
, click on links to see additional details.
We will proceed to deploying jumphost VM.