From 255edc8c8ddc4b2349a4d5aba51c4d503fbb3490 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 2 Apr 2024 21:23:50 +0200 Subject: [PATCH] restic --- group_vars/all.yml | 23 ----------------------- group_vars/blocky.yml | 3 --- group_vars/docker.yml | 3 --- group_vars/pbs.yml | 3 --- group_vars/pve.yml | 3 --- host_vars/docker10.mgrote.net.yml | 3 --- host_vars/forgejo.mgrote.net.yml | 9 +++------ host_vars/gitea.mgrote.net.yml | 3 --- 8 files changed, 3 insertions(+), 47 deletions(-) diff --git a/group_vars/all.yml b/group_vars/all.yml index d249abd8..4b359b42 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -20,29 +20,6 @@ dotfiles_vim_vundle_repo_url: https://git.mgrote.net/mirrors/Vundle.vim.git ### mgrote_netplan netplan_configure: true -### mgrote_restic -restic_user: root -restic_group: restic -restic_conf_dir: /etc/restic -restic_exclude: | - ._* - desktop.ini - .Trash-* - **/**cache***/** - **/**Cache***/** - **/**AppData***/** - # https://github.com/restic/restic/issues/1005 - # https://forum.restic.net/t/exclude-syntax-confusion/1531/12 -restic_mount_timeout: "10 min" -restic_failure_delay: "30 s" -restic_schedule: "0/6:00" # alle 6 Stunden -restic_folders_to_backup: "/" # --one-file-system ist gesetzt, also werden weitere Dateisysteme nicht eingeschlossen, es sei denn sie werden hier explizit angegeben; https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files -restic_repository: "//fileserver3.mgrote.net/restic" -restic_repository_password: "{{ lookup('keepass', 'restic_repository_password', 'password') }}" -restic_mount_user: restic -restic_mount_password: "{{ lookup('keepass', 'fileserver_smb_user_restic', 'password') }}" -restic_fail_mail: "{{ my_mail }}" - ### mgrote_user users: - username: mg diff --git a/group_vars/blocky.yml b/group_vars/blocky.yml index e5a8d11d..de05cc58 100644 --- a/group_vars/blocky.yml +++ b/group_vars/blocky.yml @@ -87,9 +87,6 @@ blocky_custom_lookups: # optional - name: fritz.box ip: 192.168.5.1 -### mgrote_restic -restic_repository: "//192.168.2.54/restic" - ### mgrote_munin_node # kann git.mgrote.net nicht auflösen, deshalb hiermit IP munin_node_plugins: diff --git a/group_vars/docker.yml b/group_vars/docker.yml index b624afcb..e4ea7c3f 100644 --- a/group_vars/docker.yml +++ b/group_vars/docker.yml @@ -15,9 +15,6 @@ lvm_groups: manage_lvm: true pvresize_to_max: true -### mgrote_restic -restic_folders_to_backup: "/ /var/lib/docker" # --one-file-system ist gesetzt, also werden weitere Dateisysteme nicht eingeschlossen, es sei denn sie werden hier explizit angegeben; https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files - ### geerlingguy.pip pip_package: python3-pip pip_install_packages: diff --git a/group_vars/pbs.yml b/group_vars/pbs.yml index 11e24eb0..f5b66d15 100644 --- a/group_vars/pbs.yml +++ b/group_vars/pbs.yml @@ -5,9 +5,6 @@ netplan_configure: false ### mgrote_postfix postfix_erlaubte_netzwerke: "127.0.0.0/8 192.168.2.0/24 192.168.3.0/24" -### mgrote_restic -restic_folders_to_backup: "/ /etc/proxmox-backup" - ### mgrote_user users: - username: root diff --git a/group_vars/pve.yml b/group_vars/pve.yml index e53f3aac..87c2aa7a 100644 --- a/group_vars/pve.yml +++ b/group_vars/pve.yml @@ -2,9 +2,6 @@ ### mgrote_netplan netplan_configure: false -### mgrote_restic -restic_folders_to_backup: "/ /etc/pve" - ### mgrote_user users: - username: root diff --git a/host_vars/docker10.mgrote.net.yml b/host_vars/docker10.mgrote.net.yml index 892eb3e5..0bd924af 100644 --- a/host_vars/docker10.mgrote.net.yml +++ b/host_vars/docker10.mgrote.net.yml @@ -29,9 +29,6 @@ cifs_mounts: gid: 5000 extra_opts: ",ro" # komma am Anfang ist notwendig weil die Option hinten angehangen wird -### mgrote_restic -restic_folders_to_backup: "/ /var/lib/docker /mnt/oci-registry" # --one-file-system ist gesetzt, also werden weitere Dateisysteme nicht eingeschlossen, es sei denn sie werden hier explizit angegeben - ### mgrote_docker-compose-inline compose_owner: "docker-user" compose_group: "docker-user" diff --git a/host_vars/forgejo.mgrote.net.yml b/host_vars/forgejo.mgrote.net.yml index 067964e8..fd809f7a 100644 --- a/host_vars/forgejo.mgrote.net.yml +++ b/host_vars/forgejo.mgrote.net.yml @@ -1,23 +1,20 @@ --- ### mrlesmithjr.ansible-manage-lvm lvm_groups: - - vgname: vg_gitea_data + - vgname: vg_data disks: - /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1 create: true lvnames: - - lvname: lv_gitea_data + - lvname: lv_data size: +100%FREE create: true filesystem: xfs mount: true - mntp: /var/lib/gitea + mntp: /var/lib/forgejo manage_lvm: true pvresize_to_max: true -### mgrote_restic -restic_folders_to_backup: "/ /var/lib/gitea" # --one-file-system ist gesetzt, also werden weitere Dateisysteme nicht eingeschlossen, es sei denn sie werden hier explizit angegeben; https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files - ### mgrote_apt_manage_packages apt_packages_extra: - fail2ban diff --git a/host_vars/gitea.mgrote.net.yml b/host_vars/gitea.mgrote.net.yml index 067964e8..3d7eefa5 100644 --- a/host_vars/gitea.mgrote.net.yml +++ b/host_vars/gitea.mgrote.net.yml @@ -15,9 +15,6 @@ lvm_groups: manage_lvm: true pvresize_to_max: true -### mgrote_restic -restic_folders_to_backup: "/ /var/lib/gitea" # --one-file-system ist gesetzt, also werden weitere Dateisysteme nicht eingeschlossen, es sei denn sie werden hier explizit angegeben; https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files - ### mgrote_apt_manage_packages apt_packages_extra: - fail2ban