ansible-edda/inventory/group_vars/restic/vars.yml

37 lines
1.8 KiB
YAML
Raw Normal View History

2023-02-12 16:37:48 +01:00
---
2023-02-19 22:36:16 +01:00
# --------------------------------------------------------------------------------------------------
# backups:restic
# --------------------------------------------------------------------------------------------------
backups_restic_user_aws_access_key_id: "{{ vault_backups_restic_user_aws_access_key_id }}"
backups_restic_user_aws_secret_access_key: "\
{{ vault_backups_restic_user_aws_secret_access_key }}"
backups_restic_user_aws_keys_file: "/etc/restic-aws-keys.yml"
backups_restic_user_aws_bucket_endpoint: "\
{{ vault_backups_restic_user_aws_bucket_endpoint }}"
backups_restic_user_restic_password: "{{ vault_backups_restic_user_restic_password }}"
backups_restic_user_restic_password_file: "/etc/restic.password"
backups_restic_user_restic_keep_daily: 30
backups_restic_user_restic_keep_monthly: 3
2023-02-12 16:37:48 +01:00
# --------------------------------------------------------------------------------------------------
# services:backups
# --------------------------------------------------------------------------------------------------
services_backups_restic_services: "\
{% set services_backups_restic_service = {} %}\
{% for service in services_host_services.keys() %}\
{{ services_backups_restic_service.update(
{ service: {
2023-02-19 22:36:16 +01:00
'user_name': ( 'pod-' ~ service ),
'data_directory': ( services_data_directory ~ '/pod-' ~ service ),
'exclude': ( services_host_services[service].restic_exclude | default([]) ),
2023-02-12 16:37:48 +01:00
'aws_bucket_prefix': ( 'the-nine-worlds---pod-' ~ service ),
}}
) }}\
2023-07-11 21:16:59 +02:00
{% if services_data_dataset is defined %}\
{{ services_backups_restic_service[service].update(
{ 'data_dataset': ( services_data_dataset ~ '/pod-' ~ service ) }
) }}\
{% endif %}\
2023-02-12 16:37:48 +01:00
{% endfor %}\
{{ services_backups_restic_service }}"