{"id":13510008,"url":"https://github.com/blz-ea/proxmox-packer","last_synced_at":"2025-03-30T15:30:28.101Z","repository":{"id":179775995,"uuid":"305859153","full_name":"blz-ea/proxmox-packer","owner":"blz-ea","description":":package: Build Proxmox templates with Packer","archived":false,"fork":false,"pushed_at":"2020-11-11T00:52:42.000Z","size":18,"stargazers_count":14,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-01T10:35:10.351Z","etag":null,"topics":["centos","dedbian","linux","packer","proxmox","terraform","ubuntu"],"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/blz-ea.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}},"created_at":"2020-10-20T23:44:08.000Z","updated_at":"2024-01-10T18:13:47.000Z","dependencies_parsed_at":"2023-07-10T08:16:13.289Z","dependency_job_id":null,"html_url":"https://github.com/blz-ea/proxmox-packer","commit_stats":null,"previous_names":["blz-ea/proxmox-packer"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blz-ea%2Fproxmox-packer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blz-ea%2Fproxmox-packer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blz-ea%2Fproxmox-packer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blz-ea%2Fproxmox-packer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blz-ea","download_url":"https://codeload.github.com/blz-ea/proxmox-packer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246338569,"owners_count":20761404,"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":["centos","dedbian","linux","packer","proxmox","terraform","ubuntu"],"created_at":"2024-08-01T02:01:20.988Z","updated_at":"2025-03-30T15:30:26.873Z","avatar_url":"https://github.com/blz-ea.png","language":"HCL","funding_links":[],"categories":["HCL","ubuntu"],"sub_categories":[],"readme":"# Build Proxmox templates with Packer #\n\n## Requirements ##\n\n| Name          | Version |\n|---------------|---------|\n| proxmox       | \\\u003e= 6.2 |\n| terraform     | \\\u003e= 0.13 |\n| packer        | \\\u003e= 1.6.5 |\n| python        | \\\u003e= 3.0  |\n| pip           | \\\u003e= 20.0 |\n| - [`proxmoxer`](https://github.com/proxmoxer/proxmoxer)           | \\\u003e= 1.1.1 |\n| - [`requests`](https://pypi.org/project/requests/) | \\\u003e= 2.24.0|\n\n## Available templates ##\n\n- [`ubuntu-server-18-04`](./ubuntu-server-18-04/)\n- [`debian-10`](./debian-10/)\n- [`centos-7`](./centos-7/)\n\n## Usage ##\n\n```hcl-terraform\nmodule \"packer_ubuntu_server_18_04_5_amd64\" {\n  source                    = \"github.com/blz-ea/proxmox-packer\"\n  \n  # Folder with Packer source configuration files\n  template                  = \"ubuntu-server-18-04\" \n  \n  proxmox_api_url           = \"https://192.168.1.1:8006\"\n  proxmox_api_username      = \"root@pam\"\n  proxmox_api_password      = \"\u003cpassword\u003e\"\n  proxmox_node_name         = \"pve\"\n  \n  vm_id                     = 4000\n  \n  iso_file        = proxmox_virtual_environment_file.ubuntu-18-04-5-server-amd64.id # \"local:iso/\u003cfilename\u003e.iso\"\n  vm_storage_pool = \"local-lvm\"\n  \n  # OS bootstrap username and password\n  username        = \"deploy\"\n  user_password   = \"\u003cpassword\u003e\"\n\n  # Optional\n  proxmox_api_otp           = \"\"\n  proxmox_api_tls_insecure  = true\n\n  vm_name       = \"ubuntu-server-18-04-5-amd64\"\n  vm_cores      = 2\n  vm_memory     = 2048\n  vm_sockets    = 1\n  time_zone     = \"UTC\"  \n  template_description  = \"Generated by Packer\"\n}\n\n# Ref: https://github.com/blz-ea/terraform-provider-proxmox\nresource \"proxmox_virtual_environment_file\" \"ubuntu-18-04-5-server-amd64\" {\n    content_type = \"iso\"\n\n    datastore_id = \"\u003cdata_store_id\u003e\"\n    node_name    = \"\u003cnode_name\u003e\"\n\n    source_file {\n        path = \"http://cdimage.ubuntu.com/releases/18.04.5/release/ubuntu-18.04.5-server-amd64.iso\"\n    }\n\n}\n\n```\n\n### To remove template from the server ###\n\n```hcl-terraform\nmodule \"packer_ubuntu_server_18_04_5_amd64\" {\n  # ...\n  remove_template = true\n  # ...\n}\n```\n\nor \n\n```bash\nterraform destory module.packer_ubuntu_server_18_04_5_amd64\n```\n\n### Build without Terraform ###\n\nEach template can be built using just Packer\n\n**Step 1: Create `variables.custom.pkr.hcl` with your values**\n\n**Step 2:**\n\n```bash\ncd \"\u003ctemplate_name\u003e\"\npacker build -var-file=variables.custom.pkr.hcl .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblz-ea%2Fproxmox-packer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblz-ea%2Fproxmox-packer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblz-ea%2Fproxmox-packer/lists"}