{"id":16543222,"url":"https://github.com/s3rius/terraform-libvirt-kube","last_synced_at":"2026-03-07T17:04:51.100Z","repository":{"id":107292388,"uuid":"566245400","full_name":"s3rius/terraform-libvirt-kube","owner":"s3rius","description":"This is a helper project which helps you test your ansible scripts for kubernetes locally","archived":false,"fork":false,"pushed_at":"2024-11-14T21:43:13.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-08T01:57:04.701Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/s3rius.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":"2022-11-15T09:14:20.000Z","updated_at":"2024-11-14T21:43:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"abe01968-b035-4d69-b7aa-ce9d12be1353","html_url":"https://github.com/s3rius/terraform-libvirt-kube","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/s3rius/terraform-libvirt-kube","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rius%2Fterraform-libvirt-kube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rius%2Fterraform-libvirt-kube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rius%2Fterraform-libvirt-kube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rius%2Fterraform-libvirt-kube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s3rius","download_url":"https://codeload.github.com/s3rius/terraform-libvirt-kube/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s3rius%2Fterraform-libvirt-kube/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30222502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T17:00:40.062Z","status":"ssl_error","status_checked_at":"2026-03-07T17:00:39.026Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T18:59:40.552Z","updated_at":"2026-03-07T17:04:51.085Z","avatar_url":"https://github.com/s3rius.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform libvirt helper\n\nThis repo will help you to create multiple nodes using libvirt and will bind it them the one network.\n\nRequires:\n* terraform \u003e= 0.12.6\n* libvirt\n* qemu\n* dnsmasq\n\nFor archlinux users:\n\n```bash\npacman -S terraform libvirt qemu-full dnsmasq\n```\n\n# Usage\n\nYou have two options how to use this repo.\n\n1. Clone it;\n2. Use as a dependency.\n\nFor the fist option it's faily straightforward. \n\n```bash\ngit clone https://github.com/s3rius/terraform-libvirt-kube.git\ncd terraform-libvirt-kube\nterraform init\n# Use this file to supply additional parameters.\ntouch vars.tfvars\n\nterraform apply -var-file vars.tfvars\n```\n\nThe second option is almost as simple as the first one, but requires a separate tf project.\n\n```\ntouch main.tf\n```\n\nPut this inside the `main.tf` file\n\n```terraform\nmodule \"mymod\" {\n  source = \"git::https://github.com/s3rius/terraform-libvirt-kube\"\n\n  libvirt_uri = \"qemu:///system\"\n  # Your variables go here...\n}\n```\n\nRun `tf init` and then you can run `tf apply` as usual.\n\n### Configuration\n\nYou can lookup all project variables in [variables.tf](https://github.com/s3rius/terraform-libvirt-kube/blob/master/variables.tf).\n\nHere's a samle config:\n\n```terraform\nlibvirt_uri = \"qemu:///system\"\n\nbase_domain      = \"kube.local\"\nnetwork_addresses = [\"10.17.0.0/24\"]\n\n# You can speedup booting by creating VMs from a downloaded img.\nos_image = \"/home/s3rius/imgs/ubuntu-22.04-server-cloudimg-amd64-disk-kvm.img\"\nssh_authorized_keys = [\n  \"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AACCIGyxBPmyfXSMl5MSk5ff1pX43GULHpHandCb32P4nMid meme@example.com\",\n]\n\nnodes = [\n  {\n    hostname    = \"lb\"           # Name of a node\n    ip          = \"10.17.0.10\"   # IP of a node\n    extra_hosts = [\"kube.local\"] # Additional hosts\n    memory      = 2048           # In MB\n    vcpus       = 2              # In CPUs\n    vol_size    = 5              # In GB\n  },\n  {\n    hostname = \"m1\"\n    ip       = \"10.17.0.11\"\n  },\n  {\n    hostname = \"m2\"\n    ip       = \"10.17.0.12\"\n  },\n  {\n    hostname = \"m3\"\n    ip       = \"10.17.0.13\"\n  },\n]\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs3rius%2Fterraform-libvirt-kube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs3rius%2Fterraform-libvirt-kube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs3rius%2Fterraform-libvirt-kube/lists"}