72 lines
2.6 KiB
YAML
72 lines
2.6 KiB
YAML
---
|
|
# Default variables for the lvm_self_backup role
|
|
|
|
# Infrastructure
|
|
# Ansible instructions to deploy the infrastructure
|
|
# Copyright (C) 2019-2020 Christoph (Sheogorath) Kern
|
|
# Copyright (C) 2020 Saibotk
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, version 3 of the License.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# The directory to put the status flag in
|
|
lvm_self_backup_status_directory: "/monitoring"
|
|
|
|
# Status directory user & group id
|
|
# This can be used for example to give telegraf access to the status files.
|
|
lvm_self_backup_status_directory_uid: 100
|
|
lvm_self_backup_status_directory_gid: 101
|
|
|
|
# The LVM volumes to backup
|
|
# Available fields:
|
|
# vg_name - The volume group that the volume resides in
|
|
# lv_name - The logical volume name that should be backed up
|
|
# fstype - Optional. Set to "xfs" to mount the snapshots with the `nouuid` flag when the XFS filesystem is used.
|
|
#
|
|
lvm_self_backup_vols: []
|
|
|
|
# The backup target (see duplicity for valid inputs)
|
|
lvm_self_backup_target: ""
|
|
|
|
# The duplicity image & version
|
|
lvm_self_backup_duplicity_image: "quay.io/sheogorath/duplicity"
|
|
# renovate: depName=quay.io/sheogorath/duplicity
|
|
lvm_self_backup_duplicity_version: "1.2.3"
|
|
lvm_self_backup_duplicity_image_version: "{{ lvm_self_backup_duplicity_version }}"
|
|
|
|
# The GPG options to be used when backing up
|
|
# Generate a GPG key as the root user before using this role and enter the details here!
|
|
lvm_self_backup_gpg:
|
|
id: ""
|
|
passphrase: "PASSWORD"
|
|
sign_key: "{{ lvm_self_backup_gpg.id }}"
|
|
encryption_keys:
|
|
- "{{ lvm_self_backup_gpg.id }}"
|
|
|
|
# Should the systemd timer be enabled to automatically backup every day?
|
|
lvm_self_backup_timer_enabled: true
|
|
lvm_self_backup_timer_state: "started"
|
|
|
|
# Management for backup retention if enabled, backups will be dropped.
|
|
lvm_self_backup_retention:
|
|
# Number of incremental backups to keep.
|
|
# Incremental backups require a full backup as base.
|
|
# Therefore the incremental count must be lower
|
|
# then under full backup if both are enabled.
|
|
incremental:
|
|
enabled: true
|
|
count: 3
|
|
# Number of full backups to keep. All additional will be deleted.
|
|
# Starting from the oldest.
|
|
full:
|
|
enabled: true
|
|
count: 6
|