Menu
Installing Terraform. The installation process for Terraform is extremely simple as it ships as a single binary file. Official instructions for installing Terraform can be found here, with some examples provided below for popular operating systems. The easiest way to install Terraform. Download VLC 3.0.11 for macOS. If here is the case, try disabling other applications that you never use to take back your desktop or laptop resources. Because VLC is open source software.Download VLC Media Player 64-bit 3.0.10 for Windows. Fast downloads of the latest free software!
1. Go to https://www.terraform.io/downloads.html 2. Download windows 64-bit zip - https://releases.hashicorp.com/terraform/0.13.3/terraform_0.13.3_windows_amd64.zip 3. once downloaded, extract the zip file to downloads directory 4. rename the extracted folder to terraform Setup path of Terraform Open windows explorer, click on PC, click on properties. Choose right click on properties, Click on Advanced system settings. Click on environment variables Click on Path --> Edit Add path of directory where you extracted terraform. C:Users<user_name>Downloadsterraform Verify Terraform installation Now open git bash, type terraform -version Terraform v0.13.3
Terraform is an automation tool created by HashiCorp. It focuses on deploying cloud infrastructure in an automatic fashion. It supports many cloud providers, like AWS, DigitalOcean, Google Cloud Platform, OpenStack, VMware vSphere, and more. Terraform is developed in GoLang, which makes the installation really easy to perform, and allows for a lot of operating systems to be supported.
In this lab, we will see how to create a Red Hat RHEL 7 Terraform template for VMware vSphere.
1- Create a new virtual machine.
2- Choose a name for your virtual machine template.
3- Select a temporary compute resource for the virtual machine.
4- Select a datastore for the virtual machine.
5- Select the vSphere compatibility for the virtual machine.
6- Select 'Red Hat Enterprise Linux 7 (64-bit)' as guest OS for the virtual machine.
7- Choose a temporary network for the virtual machine.
8- Add the RHEL 7 ISO to the CD/DVD drive of the virtual machine.
9- Connect the CD/DVD drive at boot.
10- Complete the hardware customization of the virtual machine.
11- Validate the creation of the virtual machine.
12- Power on the virtual machine.
13- Launch the vSphere web console.
1- Launch the RHEL installer.
2- Select the language of the installer.
3- Select the installation disk.
4- Configure the network card of the virtual machine with a temporary configuration.
5- Start the installation.
![]()
6- Configure the root password.
7- Configure an administrator user.
![]()
8- Reboot the virtual machine.
9- SSH to the new RHEL virtual machine.
10- Register your new RHEL machine to access the Red Hat repositories.
note: If you don't already have a Red Hat account, you can create a Red Hat developer account for free and register up to 16 RHEL servers.
11- Upgrade the RHEL packages.
12- Install Perl.
13- Install open-vm-tools
14- Reboot the virtual machine.
1- SSH to the new RHEL virtual machine.
2- Unregister your RHEL machine.
3- Remove the temporary network configuration.
3- Power off the RHEL virtual machine.
4- Edit the settings of the virtual machine.
5- Set back the network card to 'VM Network'.
6- Set back the CD/DVD drive to 'Client Device'.
7- Validate the modification.
1- Convert the virtual machine to a vSphere template.
Download 0.11 Terraform For Mac High SierraInstalling Terraform
This is an example on how to install Terraform on your Linux desktop. Terraform is also available for Mac OSX and Windows.
1- Download Terraform.
2- Unzip the archive.
3- Copy the binary to your path.
Launching a new virtual machine based on the template
1- Clone the Terraform script repository.
2- Initialise Terraform.
3- Configure the deployment (modify accordingly).
4- Deploy the virtual machine.
Terraform Download For Windows 10
5- Test to access the virtual machine.
Terraform Download Mac
6- Destroy the virtual machine.
Congratulations! You can now use this RHEL 7 template to deploy vSphere virtual machines with Terraform.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |