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
Installation instructions for deploying the Cloud Scale Technology on Azure
Following steps are required to build the infrastructure for deploying the Cloud Scale Technology environment.
Note:
Terraform stores the state about your managed infrastructure and configuration. This state is used by Terraform to map real world resources to your configuration, keep track of metadata, and improve performance for large infrastructures. This state is stored by default in a local file named terraform.tfstate
in 3 respective directories. Terraform uses state to determine what changes to make to your infrastructure. Hence, the terraform.tfstate
is very crucial and we recommend taking backup of whole terraform source code along with terraform.tfstate
files by creating zip file and uploading it into the storage account after completing the deployment successfully.
Before proceeding to execute the scripts, you need to execute the PreFlight checker script twice. To know about the PreFlight checker, refer to the section See About PreFlight checker (checklist) script.
Deploying the Cloud Scale Technology on Azure
- Locate and execute the PreFlight checker script from the repository and execute it before the Base step using the following command:
./cloudscale-preflight-check.sh -p azure -t preInfra
- Execute the Base stage instructions:
Log in and authenticate the Azure account using Azure CLI.
Change the directory using the command:
cd azure/base
Create a new
.tfvars
based on the sample .tfvars with the appropriate values and execute the commands below:terraform init
terraform plan -var-file <vars-file>.tfvars
terraform apply -var-file <vars-file>.tfvars
- Execute the Addons steps instruction given in the next procedure.
Change the directory using the command:
cd azure/addons
terraform init
terraform plan
terraform apply
- Again execute the PreFlight script after the Addons step using the command:
./cloudscale-preflight-check.sh -p azure -t postInfra
You will have to provide the Base input .tfvars file and Deployment input .tfvars file path for validation. Before running the
postInfra
script you will have to modify thedeployment.tfvars
file. - Execute the Deployment steps given in the next procedure.
Change the directory using the command:
cd azure/deployment
Create new
.tfvars
file based on the sample .tfvars with the appropriate values.terraform init
terraform plan -var-file <vars-file>.tfvars
terraform apply -var-file <vars-file>.tfvars
Verify the deployment status, using the following command:
kubectl get environment -n netbackup
The status is displayed as follows:
$ kubectl get environment -n netbackup -w NAME READY AGE STATUS assdbii 4/4 18h Success
- Execute the steps mentioned in the following section:
See Change the PostgreSQL database server password.
Terraform stores input values in the state file and to improve the security reset the database password after deployment.