Cohesity Cloud Scale Technology Deployment Guide Using Terraform for Microsoft Azure
- Introduction
- Getting started steps for deployment
- Prerequisites for setting up Azure environment
- Prerequisities for Terraform scripts
- Deploying Cloud Scale Technology using Terraform scripts
- Accessing the Cloud Scale environment
- Troubleshooting and cleanup environment steps
Installing the packages for Terraform Management Server
This step is required to setup the Terraform Management Server as jump host. A jump host is an intermediary server which can be accessed beyond a firewall. It provides information needed to communicate with the target device. You can connect to the jump host a private key or username and password.
Installing packages on Terraform Management Server
- Install Docker
Follow these steps to allow non-root user to access and leverage Docker.
a. Create and APT keyring directory using commands:
mkdir /etc/apt/keyrings
chmod 755 /etc/apt/keyrings
b. Download the
docker.gpg
file and place in the keyring folder:curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
c. Download the Docker repository. Ensure that the below command is to be pasted as single shell. It only takes a second to run.
echo deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable | tee /etc/apt/sources.list.d/docker.list
d. Install the Docker files using the next two commands one by one.
apt update
- apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
e. Confirm the Docker is installed correctly.
docker run hello-world
- Install Terraform package using root user
a. Download GPG key and place in same keyrings directory created during Docker install (Step1a).
curl -sSL https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /etc/apt/keyrings/hashicorp-archive-keyring.gpg
b. Download and install Terraform repository .Ensure that the below command is to be pasted as single shell.
echo deb [signed-by=/etc/apt/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main | tee /etc/apt/sources.list.d/hashicorp.list
c. Install Terraform 1.5.0 package using command:
apt update
apt install -y terraform=1.5.0
- Install Kubectl using root user
a. Download the kubectl binary.
curl -LO https://dl.k8s.io/release/v1.25.0/bin/linux/amd64/kubectl
b. Install the kubectl binary into /usr/local/bin
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
- Install Helm package manager
a. Download the binary file:
curl -sSL https://get.helm.sh/helm-vx.xx.x-linux-amd64.tar.gz -o helm-vx.xx.x-linux-amd64.tar.gz
Example: curl -sSL https://get.helm.sh/helm-v3.15.2-linux-amd64.tar.gz -o helm-v3.15.2-linux-amd64.tar.gz
b. Unarchive the Helm binary file.
tar xvf helm-vx.xx.x-linux-amd64.tar.gz
c. Copy the binary into /usr/local/bin
cp linux-amd64/helm /usr/local/bin/helm
chmod 775 /usr/local/bin/helm
- Install the Azure command line interface:
a. Download the Azure CLI bundle, version 2.9.xx
curl -sSL https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt -o azurecli-exe-linux-x86_64-2.9.xx.zip
b. Unzip the bundle (LOTS of files in this unzip)
unzip azurecli-exe-linux-x86_64-2.9.xx.zip
c. Execute the installation script:
./azure/install
- Copy over the Veritas binary file bundle and Terraform script bundle. This is a large file which may take sometime.
- Unzip the file downloaded on the location :
/var/terraform
folder.
Using the following commands you can configure Terraform for RHEL operating system:
1. To configure the Terraform, use the following command: sudo dnf config-manager --add-repo.
2. To install the Terraform on RHEL, use the command: sudo dnf install -y dnf-plugins-core