{"id":18363433,"url":"https://github.com/stuttgart-things/proxmox-vm","last_synced_at":"2025-04-10T06:49:44.281Z","repository":{"id":218514349,"uuid":"610376635","full_name":"stuttgart-things/proxmox-vm","owner":"stuttgart-things","description":"terraform module for creating proxmox vms","archived":false,"fork":false,"pushed_at":"2025-03-01T11:17:42.000Z","size":81,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-01T12:23:24.446Z","etag":null,"topics":["module","proxmox","pve","terraform","virtual-machine"],"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/stuttgart-things.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-03-06T16:44:06.000Z","updated_at":"2025-01-08T08:57:05.000Z","dependencies_parsed_at":"2024-01-22T14:00:51.121Z","dependency_job_id":"c8264a56-d21b-494a-ab99-37a48df06815","html_url":"https://github.com/stuttgart-things/proxmox-vm","commit_stats":null,"previous_names":["stuttgart-things/proxmox-vm"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fproxmox-vm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fproxmox-vm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fproxmox-vm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Fproxmox-vm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuttgart-things","download_url":"https://codeload.github.com/stuttgart-things/proxmox-vm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248173850,"owners_count":21059595,"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":["module","proxmox","pve","terraform","virtual-machine"],"created_at":"2024-11-05T23:06:29.525Z","updated_at":"2025-04-10T06:49:44.234Z","avatar_url":"https://github.com/stuttgart-things.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stuttgart-things/proxmox-vm\n\nTerraform module for creating proxmox vms\n\n## EXAMPLE USAGE TERRAFORM\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eCREATE PVE VM\u003c/b\u003e\u003c/summary\u003e\n\n```hcl\n# CALL MODULE - main.tf\n# main.tf\nmodule \"proxmox-vm\" {\n  source                  = \"git::https://github.com/stuttgart-things/proxmox-vm.git?ref=v2.9.14-1.5.5\"\n  pve_api_url             = var.pve_api_url\n  pve_api_user            = var.pve_api_user\n  pve_api_password        = var.pve_api_password\n  pve_api_tls_verify      = var.pve_api_tls_verify\n\n  pve_cluster_node        = \"sthings-pve1\"\n  pve_datastore           = \"datastore\"\n  pve_folder_path         = \"stuttgart-things\"\n  pve_network             = \"vmbr101\"\n  vm_count                = 1\n  vm_name                 = \"vm-test-name\"\n  vm_notes                = \"vm-info\"\n  vm_template             = \"ubuntu22\"\n  vm_num_cpus             = \"4\"\n  vm_memory               = \"4096\"\n  vm_disk_size            = \"32G\"\n  vm_ssh_user             = var.vm_ssh_user\n  vm_ssh_password         = var.vm_ssh_password\n}\n\noutput \"ip\" {\n  value     = module.proxmox-vm.ip\n}\n\noutput \"mac\" {\n  value     = module.proxmox-vm.mac\n}\n\noutput \"id\" {\n  value     = module.proxmox-vm.id\n}\n\n\nvariable \"pve_api_url\" {\n  description = \"url of proxmox api. Example: https://server-example.sva.de:8006/api2/json\"\n}\n \nvariable \"pve_api_user\" {\n  description = \"username of proxmox api user\"\n}\n \nvariable \"pve_api_password\" {\n  description = \"password of proxmox api user\"\n}\n \nvariable \"vm_ssh_user\" {\n  description = \"desired username for ssh connection\"\n}\n \nvariable \"vm_ssh_password\" {\n  description = \"desired password for ssh connection\"\n}\n \nvariable \"pve_api_tls_verify\" {\n  description = \"proxmox API disable check if cert is valid\"\n}\n ```\n\n```\n# VARIABLES -tfvars\npve_api_url=\"\u003cAPI-URL\u003e\"  \npve_api_user=\"\u003cAPI-USER\u003e\"\npve_api_password=\"\u003cAPI-PASSWORD\u003e\"\npve_api_tls_verify = true\nvm_ssh_user=\"\u003cSSH-USER\u003e\"\nvm_ssh_password=\"\u003cSSH-PASSWORD\u003e\"\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eEXECUTION\u003c/b\u003e\u003c/summary\u003e\n\n```bash\nterraform init\nterraform apply\nterraform destroy\n```\n\n\u003c/details\u003e\n\n## EXAMPLE USAGE CROSSPLANE\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eTFVARS (SECRETS)\u003c/b\u003e\u003c/summary\u003e\n\n```hcl\npve_api_url=\"\u003cAPI-URL\u003e\"\npve_api_user=\"\u003cAPI-USER\u003e\"\npve_api_password=\"\u003cAPI-PASSWORD\u003e\"\nvm_ssh_user=\"\u003cSSH-USER\u003e\"\nvm_ssh_password=\"\u003cSSH-PASSWORD\u003e\"\n```\n\n```bash\nkubectl create secret generic pve-tfvars --from-file=terraform.tfvars\n```\n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eWORKSPACE\u003c/b\u003e\u003c/summary\u003e\n\n```yaml\n---\napiVersion: tf.upbound.io/v1beta1\nkind: Workspace\nmetadata:\n  name: appserver\n  annotations:\n    crossplane.io/external-name: pve-vm\nspec:\n  providerConfigRef:\n    name: terraform-default\n  forProvider:\n    source: Remote\n    module: git::https://github.com/stuttgart-things/proxmox-vm.git?ref=v2.9.14-1.5.5\n    vars:\n      - key: vm_count\n        value: \"1\"\n      - key: vm_num_cpus\n        value: \"4\"\n      - key: vm_memory\n        value: \"4096\"\n      - key: vm_name\n        value: appserver\n      - key: vm_template\n        value: ubuntu22\n      - key: pve_network\n        value: vmbr103\n      - key: pve_datastore\n        value: v3700\n      - key: vm_disk_size\n        value: 128G\n      - key: pve_folder_path\n        value: stuttgart-things\n      - key: pve_cluster_node\n        value: sthings-pve1\n    varFiles:\n      - source: SecretKey\n        secretKeyRef:\n          namespace: default\n          name: pve-tfvars\n          key: terraform.tfvars\n  writeConnectionSecretToRef:\n    namespace: default\n    name: terraform-workspace-appserver\n```\n\n\u003c/details\u003e\n\n## OUTPUTS\n\n - `ip` - ip address of created vm\n - `mac` - mac address of created vm\n - `id` - proxmox id of created vm\n\nLicense\n--------\n\nBSD\n\nAuthor Information\n------------------\n\nMarcel Zapf; 09/2021; Stuttgart-Things\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fproxmox-vm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuttgart-things%2Fproxmox-vm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Fproxmox-vm/lists"}