Garage-HQ cluster with Systemd, Ansible
| .gitignore | ||
| ansible.cfg | ||
| garage.toml.j2 | ||
| garage.yaml | ||
| inventory.yaml | ||
| README.md | ||
| requirements.txt | ||
| vars.yaml | ||
Garage cluster
Garage is an S3-compatible, distributed object store. It does not support IAM, versioning or other experimental things but can provide a simple, trustable S3 storage across the nodes to backup Kubernetes resources or other kind of files.
It is an Ansible playbook that makes easier deployment of a multi-node Garage cluster.
Usage
See vars.yaml and inventory. Modify garage.toml.j2 as you wish as variables not exposed from there.
Suggested to use a Python virtual-env (venv) and run the playbook
python3 -m venv .venv
. .venv/bin/activate
ansible-playbook garage.yaml -K --extra-vars "@vars.yaml"
features
- Download Garage binary, specify version or latest.
- Run it in server mode from a Systemd unit as a Systemd service.
- Generate tokens and place them on the file system to make the config file easily modifyable.
- Sync tokens across nodes
- Connect nodes
- Create layout (apply it manualy!!!)