aboutsummaryrefslogtreecommitdiffstats
path: root/molecule/default
Commit message (Collapse)AuthorAgeFilesLines
* Add support for non-root backup clientsColin Wilk2026-06-275-49/+183
|
* borg!: support multiple backups to same targetColin Wilk2026-06-271-41/+41
| | | | | | | | | | | | | | | | | | This brings support for multiple backups pointing to the same borg server, different repositories, from the same client. We support this by parsing the SSH authorized key file first and appending allowed repositories to allow independent definitions of the borg targets. So that the decryption_keys do not clash we include the repository name as well as the host in the key. This will lead to new keys being created for existing hosts in the new format. Old Format: {{ combine({inventory_hostname: borg_keys.stdout}) }} New Format: {{ combine({(inventory_hostname ~ '_' ~ borg_repo_name): borg_keys.stdout}) }} If upgrading from an older version that used just the hostname as the key, your existing `decryption_keys.yml` can be manually removed once the new format is also added.
* test: add larger test suite for roleColin Wilk2026-06-2710-67/+870
| | | | | | | | - Add test systems for client/server setup - Add tests for systemd service and timer files - Add tests for SSH connectivity - Add tests for security configurations - Add tests for multi-instance backup scenarios
* Update and fix pre-commit hooksColin Wilk2026-06-262-8/+30
|
* test: add tests for systemd exist success statusColin Wilk2026-06-233-11/+46
|
* Migrate role from cron to systemdColin Wilk2023-11-043-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Systemd gives us the ability to monitor backup job status using existing monitoring solutions (node exporter) and allows us greater control over the scheduling of the backup jobs. This introduces a breaking change that requires users to manually remove the old repositories from the clients and redeploying them with the role. You will have to remove the Cron job that was created by the Ansible script, everything else will be overwritten with a run from the newer version. - name: Remove backup cron jobs ansible.builtin.cron: name: BORG (Application level backups) state: absent become: true - name: Remove env for backup cron job ansible.builtin.cron: name: BORG_PASSPHRASE env: true state: absent become: true Performing manual migrations on the Borg server is not required. We now additionally support multiple Borg repositories per client host using the `borg_backup_argument` variable. Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add YAMLLint rulesColin Wilk2023-05-242-10/+10
| | | | | | | | | | | | | | | Fix linting errors that came up with the new rules Main changes: * Enforce YAML document start headers * Enforce spacing with commas, colons and hyphens * Enforce indentation * Enforce use of quotes only then required * Enforce use of single quotes over double quotes * Enforce use of true/false over yes/no and derivatives * [..] Other minor rules that were already followed Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* initColin Wilk2023-05-244-0/+154
Signed-off-by: Colin Wilk <colin.wilk@tum.de>