mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-04 04:22:59 +00:00
51 lines
1.1 KiB
Markdown
51 lines
1.1 KiB
Markdown
---
|
|
layout: page
|
|
title: IPSet
|
|
permalink: /ressources/ipset
|
|
nav_order: 8
|
|
parent: Resources
|
|
subcategory: Virtual Environment
|
|
---
|
|
|
|
# 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"
|
|
}
|
|
}
|
|
```
|
|
|
|
## Argument 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.
|
|
|
|
## Attribute Reference
|
|
|
|
There are no attribute references available for this resource.
|