terraform-provider-infoblox
terraform-provider-infoblox copied to clipboard
Multiple IP host records
Support for host records with multiple IPs associated. Currently the input for ip_addr
is string, not list of string, so you can only set a single address. However, within the grid manager you can set multiple IPs and have the DNS cycle through these.
Would it be possible to support list of string, to pass multiple IPs, and manage them within Terraform. I don't know if you can accept string and list(string) to not break backwards compatability?
ip_addr - (Optional) If set , a record will be created in NIOS using a passed IP address value. Takes in a string. If no value is given, a next available IP address will be allocated in NIOS https://www.terraform.io/docs/providers/infoblox/r/ip_allocation.html
Current
resource "infoblox_ip_allocation" "demo_allocation"{
vm_name = "terraform-demo1"
cidr = "10.0.0.0/24"
tenant_id = "test"
ip_addr = "10.0.0.10"
}
Suggestion
Set multiple IPs
resource "infoblox_ip_allocation" "demo_allocation"{
vm_name = "terraform-demo1"
cidr = "10.0.0.0/24"
tenant_id = "test"
ip_addr = ["10.0.0.10", "10.0.0.11"]
}
Set single IP
resource "infoblox_ip_allocation" "demo_allocation"{
vm_name = "terraform-demo1"
cidr = "10.0.0.0/24"
tenant_id = "test"
ip_addr = ["10.0.0.10"] _OR_ "10.0.0.10"
}