{"id":15964724,"url":"https://github.com/fliiiix/lxd-cluster","last_synced_at":"2025-09-03T20:32:49.113Z","repository":{"id":146209107,"uuid":"363453464","full_name":"fliiiix/lxd-cluster","owner":"fliiiix","description":"LXD cluster setup with ansible and vagrant.","archived":false,"fork":false,"pushed_at":"2021-05-01T16:16:37.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-19T12:40:47.420Z","etag":null,"topics":["ansible","cluster","lxd","vagrant"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fliiiix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01T16:15:33.000Z","updated_at":"2024-06-08T19:58:57.000Z","dependencies_parsed_at":"2023-04-18T07:00:49.348Z","dependency_job_id":null,"html_url":"https://github.com/fliiiix/lxd-cluster","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"30127bc9e3e074f80125625cb04f2303afd159e0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fliiiix%2Flxd-cluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fliiiix%2Flxd-cluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fliiiix%2Flxd-cluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fliiiix%2Flxd-cluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fliiiix","download_url":"https://codeload.github.com/fliiiix/lxd-cluster/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231916801,"owners_count":18445458,"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":["ansible","cluster","lxd","vagrant"],"created_at":"2024-10-07T17:20:27.700Z","updated_at":"2024-12-30T21:32:59.842Z","avatar_url":"https://github.com/fliiiix.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"LXD Cluster\n===========\n\nLXD supports clustering (see https://lxd.readthedocs.io/en/latest/clustering/). \n\n\u003e LXD can be run in clustering mode, where any number of LXD servers share the same distributed database and can be managed uniformly using the lxc client or the REST API.\n\nThis project provides a lxd cluster with three nodes (`server1`, `server2` and `server3`). Where `server1` is our bootstrap node and \nthe other two are member nodes.\n\n## Pre requisites \n\n```\nansible-galaxy collection install community.general\n```\n\nIf you know how to automatically install that with vagrant,\nplease let me know!\n\n## Run\n\nRun with:\n\n```\nvagrant up\n```\n\n## Cleanup\n\nStop and remove all VMs.\n\n```\nvagrant destroy -f\n```\n\n## Use in the real world\n\nTo use this ansible role in a real world setup,\nI would recommended to use at least a different certificate.\nJust generate a new `lxd.crt` and `lxd.key` in `ansible/roles/lxd/files`.\n\nFor example with this openssl command:\n\n```\nopenssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \\\n  -keyout lxd.key -out lxd.crt -subj \"/CN=192.168.10.10\" \\\n  -addext \"subjectAltName=DNS:server1,IP:192.168.10.10\"\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffliiiix%2Flxd-cluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffliiiix%2Flxd-cluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffliiiix%2Flxd-cluster/lists"}