{"id":15779803,"url":"https://github.com/rgl/terraform-proxmox-windows-example","last_synced_at":"2025-04-01T16:30:29.748Z","repository":{"id":209288636,"uuid":"723441303","full_name":"rgl/terraform-proxmox-windows-example","owner":"rgl","description":"example on how to launch a windows vm using terraform in proxmox","archived":false,"fork":false,"pushed_at":"2024-11-22T06:12:43.000Z","size":69,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T11:06:16.683Z","etag":null,"topics":["proxmox","terraform","windows"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-25T17:17:08.000Z","updated_at":"2024-11-22T06:12:47.000Z","dependencies_parsed_at":"2023-11-26T14:29:19.804Z","dependency_job_id":"245be695-34dd-4c7b-bf6d-cc90bebe334c","html_url":"https://github.com/rgl/terraform-proxmox-windows-example","commit_stats":null,"previous_names":["rgl/terraform-proxmox-windows-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fterraform-proxmox-windows-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fterraform-proxmox-windows-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fterraform-proxmox-windows-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fterraform-proxmox-windows-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/terraform-proxmox-windows-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620222,"owners_count":20806722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["proxmox","terraform","windows"],"created_at":"2024-10-04T18:21:31.946Z","updated_at":"2025-04-01T16:30:29.742Z","avatar_url":"https://github.com/rgl.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Usage (from a Ubuntu 22.04 host)\n\n[![Lint](https://github.com/rgl/terraform-proxmox-windows-example/actions/workflows/lint.yml/badge.svg)](https://github.com/rgl/terraform-proxmox-windows-example/actions/workflows/lint.yml)\n\nCreate and install the [base Windows 2022 UEFI template](https://github.com/rgl/windows-vagrant).\n\nInstall Terraform:\n\n```bash\n# see https://github.com/hashicorp/terraform/releases\n# renovate: datasource=github-releases depName=hashicorp/terraform\nterraform_version='1.9.8'\nwget \"https://releases.hashicorp.com/terraform/$terraform_version/terraform_${$terraform_version}_linux_amd64.zip\"\nunzip \"terraform_${$terraform_version}_linux_amd64.zip\"\nsudo install terraform /usr/local/bin\nrm terraform terraform_*_linux_amd64.zip\n```\n\nSet your proxmox details:\n\n```bash\n# see https://registry.terraform.io/providers/bpg/proxmox/latest/docs#argument-reference\n# see https://github.com/bpg/terraform-provider-proxmox/blob/v0.67.1/proxmoxtf/provider/provider.go#L50-L59\ncat \u003esecrets-proxmox.sh \u003c\u003c'EOF'\nunset HTTPS_PROXY\n#export HTTPS_PROXY='http://localhost:8080'\nexport TF_VAR_proxmox_pve_node_address='192.168.1.21'\nexport PROXMOX_VE_INSECURE='1'\nexport PROXMOX_VE_ENDPOINT=\"https://$TF_VAR_proxmox_pve_node_address:8006\"\nexport PROXMOX_VE_USERNAME='root@pam'\nexport PROXMOX_VE_PASSWORD='vagrant'\nEOF\nsource secrets-proxmox.sh\n```\n\nCreate the infrastructure:\n\n```bash\nexport CHECKPOINT_DISABLE='1'\nexport TF_LOG='DEBUG' # TRACE, DEBUG, INFO, WARN or ERROR.\nexport TF_LOG_PATH='terraform.log'\nterraform init\nterraform plan -out=tfplan\ntime terraform apply tfplan\n```\n\nLogin into the machine using SSH:\n\n```bash\nssh-keygen -f ~/.ssh/known_hosts -R \"$(terraform output --raw ip)\"\nssh \"vagrant@$(terraform output --raw ip)\"\nexit # ssh\n```\n\nLogin into the machine using PowerShell Remoting over SSH:\n\n```bash\npwsh\nEnter-PSSession -HostName \"vagrant@$(terraform output --raw ip)\"\n$PSVersionTable\nwhoami /all\nexit # Enter-PSSession\nexit # pwsh\n```\n\nDestroy the infrastructure:\n\n```bash\ntime terraform destroy -auto-approve\n```\n\nList this repository dependencies (and which have newer versions):\n\n```bash\nexport GITHUB_COM_TOKEN='YOUR_GITHUB_PERSONAL_TOKEN'\n./renovate.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fterraform-proxmox-windows-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Fterraform-proxmox-windows-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fterraform-proxmox-windows-example/lists"}