infrastructure/roles/lvm_self_backup/defaults/main.yml

73 lines
2.5 KiB
YAML
Raw Normal View History

2020-08-10 01:37:13 +02:00
---
# Default variables for the lvm_self_backup role
2020-08-10 01:37:13 +02:00
# Infrastructure
# Ansible instructions to deploy the infrastructure
# Copyright (C) 2019-2020 Christoph (Sheogorath) Kern
2020-08-10 01:37:13 +02:00
# 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
backup_status_directory: "/monitoring"
# Status directory user & group id
# This can be used for example to give telegraf access to the status files.
backup_status_directory_uid: 100
backup_status_directory_gid: 101
2020-08-10 01:37:13 +02:00
# 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.
#
backup_vols: []
# The backup target (see duplicity for valid inputs)
backup_target: ""
# The duplicity image & version
backup_duplicity_image: "quay.io/sheogorath/duplicity"
# renovate: depName=quay.io/sheogorath/duplicity
backup_duplicity_version: "0.8.20"
2020-08-10 01:37:13 +02:00
backup_duplicity_image_version: "{{ 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!
backup_gpg:
id: ""
passphrase: "PASSWORD"
sign_key: "{{ backup_gpg.id }}"
encryption_keys:
- "{{ backup_gpg.id }}"
# Should the systemd timer be enabled to automatically backup every day?
backup_timer_enabled: true
backup_timer_state: 'started'
# Management for backup retention if enabled, backups will be dropped.
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