Add restic backups to valkyrie
This commit is contained in:
parent
05a09973df
commit
f8c9873a76
@ -22,10 +22,14 @@ services_backups_restic_services: "\
|
||||
{{ services_backups_restic_service.update(
|
||||
{ service: {
|
||||
'user_name': ( 'pod-' ~ service ),
|
||||
'data_dataset': ( services_data_dataset ~ '/pod-' ~ service ),
|
||||
'data_directory': ( services_data_directory ~ '/pod-' ~ service ),
|
||||
'aws_bucket_prefix': ( 'the-nine-worlds---pod-' ~ service ),
|
||||
}}
|
||||
) }}\
|
||||
{% if services_data_dataset is defined %}\
|
||||
{{ services_backups_restic_service[service].update(
|
||||
{ 'data_dataset': ( services_data_dataset ~ '/pod-' ~ service ) }
|
||||
) }}\
|
||||
{% endif %}\
|
||||
{% endfor %}\
|
||||
{{ services_backups_restic_service }}"
|
||||
|
@ -37,5 +37,7 @@ services_host_services:
|
||||
rproxy:
|
||||
address: "{{ vpn_bridge_prefix }}.2"
|
||||
tcp: [80, 443]
|
||||
restic: true
|
||||
www:
|
||||
address: "{{ vpn_bridge_prefix }}.3"
|
||||
restic: false
|
||||
|
@ -143,19 +143,25 @@ services_host_services:
|
||||
lrproxy:
|
||||
address: "{{ vpn_bridge_prefix }}.2"
|
||||
tcp: [80, 443]
|
||||
restic: true
|
||||
database:
|
||||
address: "{{ vpn_bridge_prefix }}.3"
|
||||
restic: true
|
||||
cloud:
|
||||
address: "{{ vpn_bridge_prefix }}.4"
|
||||
restic: true
|
||||
git:
|
||||
address: "{{ vpn_bridge_prefix }}.5"
|
||||
tcp: ["{{ services.git.ssh_port }}"]
|
||||
restic: true
|
||||
notes:
|
||||
address: "{{ vpn_bridge_prefix }}.6"
|
||||
restic: true
|
||||
music:
|
||||
address: "{{ vpn_bridge_prefix }}.7"
|
||||
collection_path: "{{ music_user_data_collection_directory }}"
|
||||
archive_path: "{{ music_user_data_archive_directory }}"
|
||||
restic: true
|
||||
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
# services:backups
|
||||
|
@ -16,6 +16,7 @@ yggdrasil
|
||||
|
||||
# Hosts with restic backups.
|
||||
[restic]
|
||||
valkyrie
|
||||
yggdrasil
|
||||
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
|
@ -20,6 +20,7 @@ yggdrasil
|
||||
|
||||
# Hosts with restic backups.
|
||||
[restic]
|
||||
valkyrie
|
||||
yggdrasil
|
||||
|
||||
# --------------------------------------------------------------------------------------------------
|
||||
|
@ -126,12 +126,13 @@
|
||||
{{ services_backups_restic_services[services_service_name].user_name }}"
|
||||
backups_restic_user_use_dataset: "{{ 'zfs' in group_names }}"
|
||||
backups_restic_user_data_dataset: "\
|
||||
{{ services_backups_restic_services[services_service_name].data_dataset }}"
|
||||
{{ services_backups_restic_services[services_service_name].data_dataset | default('') }}"
|
||||
backups_restic_user_data_directory: "\
|
||||
{{ services_backups_restic_services[services_service_name].data_directory }}"
|
||||
backups_restic_user_aws_bucket_prefix: "\
|
||||
{{ services_backups_restic_services[services_service_name].aws_bucket_prefix }}"
|
||||
loop: "{{ services_host_services | dict2items | map(attribute='key') }}"
|
||||
when: "services_host_services[services_service_name].restic"
|
||||
loop_control:
|
||||
loop_var: "services_service_name"
|
||||
tags: "always"
|
||||
|
Loading…
Reference in New Issue
Block a user