iac/tofu/.gitignore
Sergei Poljanski 796331815d
All checks were successful
nixos / nixos (push) Successful in 34s
tofu: rename from terraform, state in its own bucket, Loki buckets
The infrastructure is applied with OpenTofu; name it so. terraform/
becomes tofu/, the files end in .tofu (OpenTofu 1.8+ prefers them), the
local variables file is secrets.auto.tfvars, and both servers carry
managed_by=opentofu (an in-place label change).

The state moved to new buckets asxpio-tofu-main/-repl, key
tofu/state/tofu.tfstate, with `tofu init -migrate-state`; a plan against
it shows no changes. The old asxpio-terraform-* buckets stay, renamed
in the config with moved blocks, until the new state has been used for
a while.

asxpio-loki-main, created by hand, is adopted with an import block, and
a new asxpio-loki-repl in fsn1 receives it in the daily replica, which
now also copies the new state bucket instead of the old one.

What keeps the Terraform name is OpenTofu's own: the `terraform {}`
block and .terraform.lock.hcl.

Assisted-by: Claude:opus-5-5
2026-11-17 09:42:53 +04:00

49 lines
620 B
Text

# OpenTofu state files (the state itself is in Object Storage)
*.tfstate
*.tfstate.*
*.tfstate.backup
# Plan files
tfplan
*.tfplan
plan.txt
# Variable files with secrets (secrets.auto.tfvars)
*.tfvars
*.auto.tfvars
# CLI configuration
.terraformrc
terraform.rc
# Provider cache (the lock file is committed: it pins the providers)
.terraform/
# Crash log files
crash.log
crash.*.log
# Override files
override.tf
override.tf.json
*_override.tf
*_override.tf.json
# SSH keys
*.pem
*.key
*_rsa
*_ed25519
deploy_key
deploy_key.pub
# IDE and editor files
.idea/
.vscode/
*.swp
*.swo
*~
# OS files
.DS_Store
Thumbs.db