{"id":15429448,"url":"https://github.com/evindunn/terraform-kvm-module","last_synced_at":"2025-10-17T12:49:28.795Z","repository":{"id":130611473,"uuid":"370763352","full_name":"evindunn/terraform-kvm-module","owner":"evindunn","description":"Reusable kvm module with terraform-provider-libvirt","archived":false,"fork":false,"pushed_at":"2021-11-12T18:39:20.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-09T07:03:41.514Z","etag":null,"topics":["infrastructure-as-code","kvm","terraform"],"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/evindunn.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":"2021-05-25T16:43:09.000Z","updated_at":"2024-06-12T02:50:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1c728a4-4f99-424d-a04e-0238fa31f74e","html_url":"https://github.com/evindunn/terraform-kvm-module","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"69b7776d4bf98e2d0143dc1bfa33303f571826f8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evindunn/terraform-kvm-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evindunn%2Fterraform-kvm-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evindunn%2Fterraform-kvm-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evindunn%2Fterraform-kvm-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evindunn%2Fterraform-kvm-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evindunn","download_url":"https://codeload.github.com/evindunn/terraform-kvm-module/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evindunn%2Fterraform-kvm-module/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264411146,"owners_count":23603802,"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":["infrastructure-as-code","kvm","terraform"],"created_at":"2024-10-01T18:10:18.408Z","updated_at":"2025-10-17T12:49:28.721Z","avatar_url":"https://github.com/evindunn.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Usage\n\nSee [github.com/evindunn/terraform_k8s](https://github.com/evindunn/terraform_k8s)\n\n```terraform\n...\n\nmodule \"k8s_domains\" {\n  source            = \"github.com/evindunn/terraform-kvm-module\"\n  hostname_prefix   = \"k8s\"\n  ssh_public_key    = file(local_file.ssh_key_public.filename)\n  node_count        = 3\n  ansible_playbook  = file(\"./ansible-k8s-prepare.yml\")\n  network_id        = libvirt_network.bridge.id\n  os_disk_size      = 34360000000 # 32 GiB\n}\n\n...\n```\n\n# Required variables\n| Name | Type | Description |\n| ---- | ---- | ----------- |\n| node_count | number | The number of identical vms to create | \n| network_id | string | The id of the libvirt_network to use for the vms |\n| ssh_public_key | string | The ssh public key for accessing the VMs |\n                                                                                           \n# Optional variables\n| Name | Type | Description | Default |\n| ---- | ---- | ----------- | ------- |\n| ansible_playbook | string | Contents of an ansible playbook to run on first boot | null |\n| base_image | string | Cloud base image for the VMs | [Debian generic cloud image](https://cdimage.debian.org/cdimage/cloud/buster/20211011-792/) |\n| cpu_count | number | The number of vcpus for each VM | 2 |\n| data_volumes.count | number | The number of (blank) data disks for each VM | 0 |\n| data_volumes.size | number | The size of each data disk for each VM (bytes) | 1074000000 (1GiB) |\n| extra_files | list | Extra files to add to cloud-init | [] |\n| hostname_prefix | string | The hostname prefix for each VM | node |\n| mac_addresses | list(string) | A list of mac addresses for the VMs | [] |\n| os_disk_size | number | Size of the OS disk for each VM (bytes) | 8590000000 (8 GiB) |\n| ram_size | number | The amount of RAM for each VM (MiB) | 2048 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevindunn%2Fterraform-kvm-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevindunn%2Fterraform-kvm-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevindunn%2Fterraform-kvm-module/lists"}