iac/terraform/.gitignore
Sergei Poljanski c51522d371
terraform: install NixOS at first boot, run with OpenTofu
A new or rebuilt server should come up as NixOS without a manual
install. cloud-init now runs a pinned nixos-infect on the Debian image
and reboots into a bare NixOS; the system itself comes from nixos/.
One template replaces the two near-identical Debian cloud-init files.

nixos-infect's output needs three corrections on NixOS 26.05, written
to bootstrap.nix: the takeover of the old root only exists in the
scripted initrd, the IPv4 default route is never added without an
interface, and the private network gets no route. Found and verified
on throwaway servers.

The servers still ignore changes to user_data, so nothing happens to
the running ones. The new user_data output feeds a rebuild in place.

Switch to OpenTofu: same HCL and state, and it is free software in
nixpkgs. Commit the provider lock file so everyone gets the same
providers.

Assisted-by: Claude:fable-5-2
2026-11-16 22:59:58 +04:00

49 lines
604 B
Text

# Terraform state files
*.tfstate
*.tfstate.*
*.tfstate.backup
# Terraform plan files
tfplan
*.tfplan
plan.txt
# Terraform variable files with secrets
terraform.tfvars
*.auto.tfvars
# Terraform CLI configuration
.terraformrc
terraform.rc
# Terraform directories (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