Update and add default vars for autobackup
This commit is contained in:
parent
f6878c69ad
commit
b7f1c55279
|
@ -211,15 +211,15 @@ pvc_autobackup:
|
|||
# conflicts should those clusters share VM names. It is optional unless this matches your situation.
|
||||
# > The path "/tmp/backups" is usually recommended for remote mounting
|
||||
# > NOTE: If you specify it, the suffix must begin with a '/', but is relative to the root path!
|
||||
backup_root_path: "/tmp/backups"
|
||||
backup_root_suffix: "/cluster1"
|
||||
root_path: "/tmp/backups"
|
||||
root_suffix: "/mycluster"
|
||||
# Set the VM tag(s) which will be selected for autobackup
|
||||
# > Autobackup selects VMs based on their tags. If a VM has a tag present in this list, it will be
|
||||
# selected for autobackup at runtime; if not it will be ignored.
|
||||
# > Usually, the tag "autobackup" here is sufficient; the administrator should then add this tag
|
||||
# to any VM(s) they want to use autobackups. However, any tag may be specified to keep the tag list
|
||||
# cleaner and more focused, should the administrator choose to.
|
||||
backup_tags:
|
||||
tags:
|
||||
- autobackup
|
||||
# Autobackup scheduling
|
||||
schedule:
|
||||
|
|
|
@ -59,7 +59,34 @@ pvc_api_database_password: "PVCprovPassw0rd"
|
|||
# # This slice includes all OSD processes
|
||||
# # At least 1 core per OSD should be assigned to this slice.
|
||||
|
||||
# Coordinators
|
||||
# VM Autobackup
|
||||
# This is uncommented but disabled so this is not installed by default; enable it in your per-cluster configs
|
||||
# Autobackup allows the exporting of VM backups automatically to an external disk target.
|
||||
# These values are default; ensure you modify them in your own group_vars to match your system!
|
||||
pvc_autobackup:
|
||||
enabled: no
|
||||
root_path: /tmp/backups
|
||||
root_suffix: /mycluster
|
||||
tags:
|
||||
- autobackup
|
||||
schedule:
|
||||
normal_time: "Tue..Sun *-*-* 0:0:00"
|
||||
forced_full_time: "Mon *-*-* 0:0:00"
|
||||
full_interval: 7
|
||||
full_retention: 2
|
||||
auto_mount:
|
||||
enabled: no
|
||||
packages:
|
||||
# Example: Install nfs-common for NFS mounts
|
||||
# - nfs-common
|
||||
mount_cmds:
|
||||
# Example: Mount an NFSv3 path from 10.0.0.10:/backups to {backup_root_path}
|
||||
# - "/usr/sbin/mount.nfs -o nfsvers=3 10.0.0.10:/backups {backup_root_path}"
|
||||
unmount_cmds:
|
||||
# Example: Unmount the {backup_root_path}
|
||||
# - "/usr/bin/umount {backup_root_path}"
|
||||
|
||||
# Coordinators & Nodes list
|
||||
pvc_nodes:
|
||||
- hostname: "pvc1" # The full ansible inventory hostname of the node
|
||||
is_coordinator: yes # If the node is a coordinator or not
|
||||
|
|
|
@ -163,11 +163,11 @@ api:
|
|||
private_key: "{{ pvc_api_ssl_key_path if pvc_api_ssl_key_path is defined and pvc_api_ssl_cert_path else '/etc/pvc/api-key.pem' }}"
|
||||
|
||||
autobackup:
|
||||
{% if pvc_autobackup is defined and pvc_autobackup %}
|
||||
backup_root_path: {{ pvc_autobackup.backup_root_path }}
|
||||
backup_root_suffix: {{ pvc_autobackup.backup_root_suffix }}
|
||||
{% if pvc_autobackup is defined and pvc_autobackup.enabled is defined and pvc_autobackup.enabled %}
|
||||
backup_root_path: {{ pvc_autobackup.root_path }}
|
||||
backup_root_suffix: {{ pvc_autobackup.root_suffix }}
|
||||
backup_tags:
|
||||
{% for tag in pvc_autobackup.backup_tags %}
|
||||
{% for tag in pvc_autobackup.tags %}
|
||||
- {{ tag }}
|
||||
{% endfor %}
|
||||
backup_schedule:
|
||||
|
|
Loading…
Reference in New Issue