We’re excited to announce that Citrix is now a HashiCorp Technology Partner and that Citrix ADC is listed in the HashiCorp Terraform Registry.

HashiCorp Terraform is an infrastructure-as-code software tool that IT teams can use to orchestrate and manage their infrastructure, including networking. Terraform codifies infrastructure into declarative configuration files for easier provisioning, compliance, and management.

This technology integration enables you to use the Terraform Verified provider for Citrix ADC to configure ADCs for global server load balancing, SSL offloading, web application firewall policies, and more. With Terraform, you can share and reuse your Citrix ADC configurations across your environments — a key time saver when migrating applications from your data center to any public cloud.

Configure Citrix ADC with HashiCorp Terraform

The Terraform provider for Citrix ADC simplifies the installation and upgrade process for using Terraform with Citrix ADC. It enables you to codify the Citrix ADC provider version you want to use, take advantage of automatic installation, and integrate Citrix ADC seamlessly into your automated CI/CD workflows.

It’s quick to install and configure Citrix ADC:

1) Install Terraform into any of your local machines that can communicate to Citrix ADC.

2) Clone the Terraform provider for Citrix ADC GitHub repo to use pre-built examples for ADC use cases:

git clone https://github.com/citrix/terraform-provider-citrixadc/

3) Define a ADC configuration in Terraform files.

Navigate with the above repo to simple_server example folder :

cd …/terraform-provider-citrixadc/examples/simple_server$

Edit the provider.tf file with your target ADC info as shown below :

terraform {
  required_providers {
    citrixadc = {
      source = "citrix/citrixadc"
    }
  }
}

provider "citrixadc" {
  endpoint = "http://<ip>:<port>"
  username = "yourAdcUsername"
  password = "yourAdcPassword"}

Edit the resource file to create a backend server in your ADC as shown below :

resource "citrixadc_server" "test_server"{
  name      = "WebApp-A"
  ipaddress = "<ipofWebApp-A>"
}

4) Run Terraform commands to apply configuration to target ADC:

Initialize the Citrix ADC provider by running :

terraform-init

Apply the configurations. Review the configuration changes proposed by Terraform and type yes to approve :

terraform-apply

That’s it! Now log in to Citrix ADC manually and validate the configuration changes made by Terraform.

Try it out by creating a simple load balancing server in Citrix ADC using these guidelines.

Request a Demo

Want to learn more about how Citrix ADC integrates with HashiCorp Terraform to automate application delivery across multi-cloud environments? Request a 1:1 demo today!