Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fliiiix/lxd-cluster
LXD cluster setup with ansible and vagrant.
https://github.com/fliiiix/lxd-cluster
ansible cluster lxd vagrant
Last synced: about 1 month ago
JSON representation
LXD cluster setup with ansible and vagrant.
- Host: GitHub
- URL: https://github.com/fliiiix/lxd-cluster
- Owner: fliiiix
- License: bsd-2-clause
- Created: 2021-05-01T16:15:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-01T16:16:37.000Z (almost 4 years ago)
- Last Synced: 2024-12-19T12:40:47.420Z (about 1 month ago)
- Topics: ansible, cluster, lxd, vagrant
- Language: Jinja
- Homepage:
- Size: 7.81 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
LXD Cluster
===========LXD supports clustering (see https://lxd.readthedocs.io/en/latest/clustering/).
> 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.
This project provides a lxd cluster with three nodes (`server1`, `server2` and `server3`). Where `server1` is our bootstrap node and
the other two are member nodes.## Pre requisites
```
ansible-galaxy collection install community.general
```If you know how to automatically install that with vagrant,
please let me know!## Run
Run with:
```
vagrant up
```## Cleanup
Stop and remove all VMs.
```
vagrant destroy -f
```## Use in the real world
To use this ansible role in a real world setup,
I would recommended to use at least a different certificate.
Just generate a new `lxd.crt` and `lxd.key` in `ansible/roles/lxd/files`.For example with this openssl command:
```
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \
-keyout lxd.key -out lxd.crt -subj "/CN=192.168.10.10" \
-addext "subjectAltName=DNS:server1,IP:192.168.10.10"
```