commit d3e150b56499327b3a3ce75231e6b92286b00b1e Author: Matthew McKinnon Date: Sat Sep 27 12:03:38 2025 +1000 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ab02506 --- /dev/null +++ b/.gitignore @@ -0,0 +1,39 @@ +# Local .terraform directories +**/.terraform/* + +# .tfstate files +*.tfstate +*.tfstate.* + +# Crash log files +crash.log +crash.*.log + +# Exclude override files as they are usually for local changes +override.tf +override.tf.json +*_override.tf +*_override.tf.json + +# Include override files you do wish to add to version control using negation +# !example_override.tf + +# Exclude Terraform variable files that may contain sensitive data +*.tfvars +*.tfvars.json + +# Ignore CLI configuration files +.terraformrc +terraform.rc + +# Ignore lock files (optional: keep if you want dependency locking in VCS) +.terraform.lock.hcl + +# IDE and OS specific files +.DS_Store +Thumbs.db +*.swp +*.bak +*.tmp +*.idea/ +.vscode/ diff --git a/docker.tf b/docker.tf new file mode 100644 index 0000000..2ef5d72 --- /dev/null +++ b/docker.tf @@ -0,0 +1,93 @@ +resource "proxmox_vm_qemu" "dev-docker" { + + # VM General Settings + target_node = "pve" + vmid = "400" + name = "dev-docker" + tags = null + + # VM Advanced General Settings + onboot = true + scsihw = "virtio-scsi-single" + + # VM OS Settings + clone = "debian-12-generic-amd64" + clone_wait = 120 + timeouts { + create = "1h" + delete = "1h" + } + + # VM System Settings + agent = 0 + machine = "q35" + qemu_os = "l26" + + # VM CPU Settings + cpu { + cores = 1 + sockets = 4 + type = "x86-64-v2-AES" + } + bios = "ovmf" + + + startup = "order=2" + + + # VM Memory Settings + memory = 16384 + + # VM Network Settings + network { + id = 0 + bridge = "vmbr0" + model = "virtio" + tag = "10" + } + + efidisk { + efitype = "4m" + storage = "local" + } + + disks { + ide { + ide2 { + cdrom { + passthrough = false + } + } + ide3 { + cloudinit { + storage = "local" + } + } + } + scsi { + scsi0 { + disk { + size = 80 + storage = "local" + } + } + } + } + + # VM Cloud-Init Settings + os_type = "cloud-init" + + # (Optional) IP Address and Gateway + ipconfig0 = "ip=10.10.10.20/24,gw=10.10.10.1" + nameserver = "10.10.10.1" + + # (Optional) Default User + ciuser = var.ci_user # Updated + cipassword = var.ci_password # Updated + + # (Optional) Add your SSH Public KEY + sshkeys = <