Skip to content

feat(tofu): codify gitlab-1 KVM VM#215

Merged
swares merged 3 commits into
mainfrom
feat/tofu-vms-codify
Jul 18, 2026
Merged

feat(tofu): codify gitlab-1 KVM VM#215
swares merged 3 commits into
mainfrom
feat/tofu-vms-codify

Conversation

@swares

@swares swares commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Codifies the gitlab-1 VM (GitLab CE on n150-1) into OpenTofu state.

  • Tracks name, memory, vcpu, autostart only
  • lifecycle.prevent_destroy guards against accidental destruction
  • ignore_changes = all — libvirt manages the full domain XML
  • Backend: Minio tofu-state/vms/terraform.tfstate

Also fixes AppArmor bridge helper and disk ownership issues on n150-1 that were exposed when the domain was lost after the kernel update.

swares added 3 commits July 18, 2026 17:36
Imports gitlab-1 (UUID 6ea193a5) from n150-1 into OpenTofu state.
Tracks identity + prevent_destroy only — full domain config (devices,
cpu, clock, networking) is managed by libvirt on n150-1, not here.

Backend: Minio tofu-state/vms/terraform.tfstate
Requires: tofu init -backend-config=~/.tofu-backend.hcl
@swares
swares merged commit 7d764f0 into main Jul 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant