terraform: add parameterized multi-VM deployment system #5

Merged
torjus merged 1 commits from terraform-parameterized-deployments into master 2026-01-31 22:31:14 +00:00
Owner

Implements Phase 1 of the OpenTofu deployment plan:

  • Replace single-VM configuration with locals-based for_each pattern
  • Support multiple VMs in single deployment
  • Automatic DHCP vs static IP detection
  • Configurable defaults with per-VM overrides
  • Dynamic outputs for VM IPs and specifications

New files:

  • outputs.tf: Dynamic outputs for deployed VMs
  • vms.tf: VM definitions using locals.vms map

Updated files:

  • variables.tf: Added default variables for VM configuration
  • README.md: Comprehensive documentation and examples

Removed files:

  • vm.tf: Replaced by new vms.tf (archived as vm.tf.old, then removed)

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

Implements Phase 1 of the OpenTofu deployment plan: - Replace single-VM configuration with locals-based for_each pattern - Support multiple VMs in single deployment - Automatic DHCP vs static IP detection - Configurable defaults with per-VM overrides - Dynamic outputs for VM IPs and specifications New files: - outputs.tf: Dynamic outputs for deployed VMs - vms.tf: VM definitions using locals.vms map Updated files: - variables.tf: Added default variables for VM configuration - README.md: Comprehensive documentation and examples Removed files: - vm.tf: Replaced by new vms.tf (archived as vm.tf.old, then removed) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
torjus added 1 commit 2026-01-31 22:31:06 +00:00
terraform: add parameterized multi-VM deployment system
Some checks failed
Run nix flake check / flake-check (push) Failing after 1m52s
Run nix flake check / flake-check (pull_request) Failing after 1m24s
7aa5137039
Implements Phase 1 of the OpenTofu deployment plan:
- Replace single-VM configuration with locals-based for_each pattern
- Support multiple VMs in single deployment
- Automatic DHCP vs static IP detection
- Configurable defaults with per-VM overrides
- Dynamic outputs for VM IPs and specifications

New files:
- outputs.tf: Dynamic outputs for deployed VMs
- vms.tf: VM definitions using locals.vms map

Updated files:
- variables.tf: Added default variables for VM configuration
- README.md: Comprehensive documentation and examples

Removed files:
- vm.tf: Replaced by new vms.tf (archived as vm.tf.old, then removed)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
torjus merged commit 076e22c338 into master 2026-01-31 22:31:14 +00:00
torjus deleted branch terraform-parameterized-deployments 2026-01-31 22:31:14 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: torjus/nixos-servers#5