sylve_jail_snapshot_rollback (Resource)
Rolls a sylve_jail back to a prior sylve_jail_snapshot. One-shot ACTION, not persistent state – see sylve_vm_snapshot_rollback’s own description for the full reasoning (shared: trigger re-fires on change, Delete is a deliberate no-op, Sylve hardcodes destroying newer state as part of the rollback with no partial option).
Example Usage
# One-shot ACTION -- see sylve_vm_snapshot_rollback's own example for
# the shared reasoning (trigger + RequiresReplace to re-fire,
# deliberately no-op Delete).
resource "sylve_jail_snapshot_rollback" "restore" {
ctid = sylve_jail.example.ctid
snapshot_id = tonumber(sylve_jail_snapshot.before_upgrade.id)
trigger = "restore-1"
}
Schema
Required
ctid(Number) CTID of the sylve_jail to roll back.snapshot_id(Number) ID of the sylve_jail_snapshot to roll back to.trigger(String) Arbitrary string. Changing it re-fires the rollback – see the resource’s own description.
Read-Only
id(String) Terraform resource identity. Not a real external ID – just “- " for display.