Add backup clients

This commit is contained in:
SebClem 2023-02-17 16:27:56 +01:00
parent f2d628e94a
commit a7e0a2722b
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
7 changed files with 34 additions and 21 deletions

View File

@ -1 +1,14 @@
ansible_python_interpreter: /usr/bin/python3
# renovate: datasource=pypi depName=borgbackup
borg_version: "1.2.3"
home: /home/backup
pool: "{{ home }}/repos"
auth_users:
- host: docker.home
key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILc1d7YIcoDU+JL5q9RAJ2UFkR2bebLlDdqXD1tLtIxo root@docker.home
- host: database.home
key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK/42UU1EafdtGR2vbXs23NdRBRuu+uhy2kt3dxZKkwZ root@database.home

View File

@ -3,4 +3,4 @@ all:
children:
nodes:
hosts:
victoria.home:
borg.home:

View File

@ -0,0 +1,6 @@
$ANSIBLE_VAULT;1.1;AES256
64343764653264313038396261633363376366373462316234623132306465343431393966623534
6332363366396161323561623130303130613234373966320a303163643663653930633235306331
37313338303637336133356535653636333462343237646438373830313835333834343133636136
3565626161353363640a393632346535353636356134663263356361656561383866643533376138
3137

View File

@ -1,17 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"ignorePresets": [":prHourlyLimit2"],
"commitMessagePrefix": ":arrow_up:",
"regexManagers":
[
{
"fileMatch": ["group_vars\\/.*\\.yml", "host_vars\\/.*\\.yml"],
"matchStrings":
[
"datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?_version: \"(?<currentValue>.*)\"\\s",
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
},
],
}

View File

@ -1,5 +1,5 @@
---
- name: ${REPO_NAME_TITLE}
- name: Ansible-borg-server-playbook
hosts: nodes
pre_tasks:
@ -8,5 +8,16 @@
file: "{{ inventory_dir }}/secrets/{{ inventory_hostname }}.yml"
tags:
- always
- name: Install nfs-common
ansible.builtin.package:
name: nfs-common
- name: Add repo mount
ansible.posix.mount:
src: 10.23.0.11:/media/big_data/Infra/borg
path: "{{ pool }}"
opts: rw,sync,hard
state: mounted
fstype: nfs
roles: []
roles:
- role: ansible-borg-server-role

View File

@ -1,3 +1,3 @@
roles:
- src: https://git.sebclem.fr/ansible-roles/ansible-victoria-role.git
- src: https://git.sebclem.fr/ansible-roles/ansible-borg-server-role.git
scm: git