terraform-provider-bigip icon indicating copy to clipboard operation
terraform-provider-bigip copied to clipboard

Feature request: Ability to Sync F5 pair after applying F5 config

Open blakesherry opened this issue 6 years ago • 2 comments

Currently I don't see the capability to create pools, nodes, and health monitors to an F5 pair. provider "bigip" { address = "${var.url}" only allows a single host and I don't see a way to sync F5's also, if I was able to list multiple F5 hosts

blakesherry avatar May 06 '19 21:05 blakesherry

I'm assuming you are not using automatic sync?

If you use Terragrunt you can add an After-Hook to run a Sync command.

Additionally you can setup provider aliases to point to different bigip nodes and invoke that provider in the resources block as required.

For example:

provider "bigip" {
  alias    = "bigip01"
  address  = "${var.bigip01_url}"
  username = "${var.bigip_username}"
  password = "${var.bigip_password}"
}

provider "bigip" {
  alias    = "bigip02"
  address  = "${var.bigip02_url}"
  username = "${var.bigip_username}"
  password = "${var.bigip_password}"

Using the above you can reference the provider alias in any resource, e.g.:

resource "bigip_net_vlan" "bigip01_app_vlan" {
  name = "${format("/%s/%s", var.bigip_app_partition, var.bigip_vlan_names["app"])}"
  tag = "${var.app_vlan_id}"
  interfaces = {
    vlanport = "${var.bigip_trunk_name}",
    tagged = true
  }

  provider = "bigip.bigip01"
}

This method however will require doubling each resource to configure it on both bigip nodes (if they are an HA pair).

dannyk81 avatar May 06 '19 22:05 dannyk81

currently we do not auto sync F5 pairs. I will look into Terragrunt and add an After-Hook to run a Sync command.

blakesherry avatar May 14 '19 15:05 blakesherry

Hi, closing this request now. Please re-open if required or send an email to [email protected]. Thanks!

KrithikaChidambaram avatar Feb 21 '23 12:02 KrithikaChidambaram