sylve_jail_snapshot (Resource)
A point-in-time ZFS snapshot of a sylve_jail’s root dataset. Structurally parallel to sylve_vm_snapshot – see that resource’s own description for the shared reasoning (crash-consistent regardless of running state, immutable name/description, no rename endpoint). See sylve_jail_snapshot_rollback to actually restore one.
Example Usage
# Structurally identical to sylve_vm_snapshot -- see that resource's
# example for the shared reasoning (crash-consistent, immutable
# name/description).
resource "sylve_jail_snapshot" "before_upgrade" {
ctid = sylve_jail.example.ctid
name = "before-upgrade"
description = "before applying package upgrades"
}
Schema
Required
ctid(Number) CTID of the sylve_jail to snapshot. Immutable.name(String) Snapshot name. Immutable (no rename endpoint).
Optional
description(String) Free-text description. Immutable, same reason as name.
Read-Only
id(String) Terraform resource identity – the snapshot’s own numeric ID.root_dataset(String) ZFS dataset this snapshot covers.snapshot_name(String) Sylve’s own internal ZFS snapshot name (distinct from the display name above).