0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 19:12:59 +00:00
terraform-provider-proxmox/docs/resources/ipset.md

1.1 KiB

layout title permalink nav_order parent
page IPSet /ressources/ipset 8 Resources

Resource: IPSet

An IPSet allows us to group multiple IP addresses, IP subnets and aliases.

Example Usage

resource "proxmox_virtual_environment_cluster_ipset" "ipset" {
	name    = "local_network"
	comment = "Managed by Terraform"
    
    cidr {
        name = "192.168.0.0/23"
        comment = "Local network 1"
    }
    
    cidr {
        name = "192.168.0.1"
        comment = "Server 1"
        nomatch = true
    }
    
    cidr {
        name = "192.168.2.1"
        comment = "Server 1"
    }
}

Arguments Reference

  • name - (Required) Alias name.
  • comment - (Optional) Alias comment.
  • cidr - (Optional) IP/CIDR block (multiple blocks supported).
    • name - Network/IP specification in CIDR format.
    • comment - (Optional) Arbitrary string annotation.
    • nomatch - (Optional) Entries marked as nomatch are skipped as if those were not added to the set.

Attributes Reference

There are no attribute references available for this resource.