Some checks failed
PR Checks / tofu-checks (pull_request) Failing after 2s
1/1 projects applied successfully.
Reusable OpenTofu module for creating isolated tenant VMs with: - Public IP on vmbr1 (bridged, firewall=true) - Cloud-init: password auth, fail2ban, UFW hardening - Per-VM Proxmox firewall (IN: SSH+ICMP, OUT: allow, block SMTP) Includes test-tenant VM (185.47.204.227) for verification. Changes: - modules/tenant-vm/ — reusable module (VM + FW + cloud-init) - environments/production/tenant-vms.tf — tenant VM definitions - policies/security.rego — require firewall=true on vmbr1 - atlantis.yaml — trigger on module file changes - main.tf — updated host prerequisites comment Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
419 B
HCL
22 lines
419 B
HCL
# Tenant VM module — outputs
|
|
|
|
output "vm_id" {
|
|
description = "Proxmox VMID"
|
|
value = proxmox_virtual_environment_vm.tenant.vm_id
|
|
}
|
|
|
|
output "name" {
|
|
description = "VM name"
|
|
value = proxmox_virtual_environment_vm.tenant.name
|
|
}
|
|
|
|
output "public_ip" {
|
|
description = "Public IP address"
|
|
value = var.public_ip
|
|
}
|
|
|
|
output "username" {
|
|
description = "SSH username"
|
|
value = var.username
|
|
}
|