Closed adh-cnc closed 6 months ago
Hello @adh-cnc Thanks for raising this request.
I see from the above configuration that:
resource "citrixadc_hanode" "vpx_primary" {
hanode_id = citrixadc_hanode.local_node.hanode_id
ipaddress = var.primary_vpx_nsip
provider = citrixadc.PRIMARY
depends_on = [citrixadc_hanode.local_node]
}
resource "citrixadc_hanode" "vpx_secondary" {
hanode_id = 1
ipaddress = var.secondary_vpx_nsip
provider = citrixadc.SECONDARY
depends_on = [citrixadc_hanode.vpx_primary]
}
We have written a terraform-script/module to configure HA you can refer that from HERE
Instead, the above two block should be modified as follows:
resource "citrixadc_hanode" "vpx_primary" {
hanode_id = 1
ipaddress = var.secondary_vpx_nsip
provider = citrixadc.PRIMARY
depends_on = [citrixadc_hanode.local_node]
}
resource "citrixadc_hanode" "vpx_secondary" {
hanode_id = 1
ipaddress = var.primary_vpx_nsip
provider = citrixadc.SECONDARY
depends_on = [citrixadc_hanode.vpx_primary]
}
Please check the above link provided to configure HA. (I am providing it again HERE) Please update me here on any progress.
Thanks Rohit
Terraform Core Version
1.8.3
citrixadc Provider Version
1.38.0
Operating system
MacOS
Affected Resource(s)
citrixadc_hanode
Equivalent NetScaler CLI Command
Unknown
Expected Behavior
HA configuration should succeed.
Actual Behavior
TF plan works and displays expected information, local node configures and then error message is displayed about the argument "ipaddress" being invalid. Documentation reflects this is the correct argument to use.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response