sylve_network_object (Resource)

A Sylve network object: a named, typed set of values – MAC addresses, IPs/CIDRs, hostnames, ports, countries, or a list of any of those. VM/jail mac_id and a standard switch’s network4/gateway4/etc. all reference one of these by ID (not yet wired into this provider’s own sylve_vm/sylve_jail resources).

Example Usage

resource "sylve_network_object" "static_mac" {
  name   = "my-vm-mac"
  type   = "Mac" # or "Host", "Network", "Port", "Country", "List"
  values = ["AA:BB:CC:DD:EE:01"]
}

resource "sylve_network_object" "office_subnet" {
  name   = "office-subnet"
  type   = "Network"
  values = ["192.0.2.0/24"]
}

Schema

Required

  • name (String) Object name. Must be unique across all network objects on the node.
  • type (String) “Host” (hostname/FQDN), “Mac” (MAC address), “Network” (IP/CIDR), “Port”, “Country” (country code), or “List” (a list of references to other objects). Not validated client-side; an invalid value is rejected server-side.
  • values (List of String) The object’s values, e.g. [“AA:BB:CC:DD:EE:FF”] for a Mac object or [“192.168.1.0/24”] for a Network object. Updated in place via EditNetworkObject (full replace, not a diff/patch).

Read-Only

  • id (String) Terraform resource identity – the object’s numeric ID as a string.

Not published on the Terraform Registry yet -- see the repo's README for local dev_overrides usage in the meantime.

This site uses Just the Docs, a documentation theme for Jekyll.