29 lines
1.5 KiB
YAML
29 lines
1.5 KiB
YAML
---
|
|
# --------------------------------------------------------------------------------------------------
|
|
# services:backups
|
|
# --------------------------------------------------------------------------------------------------
|
|
services_backups_restic_restic_password: "{{ vault_services_backups_restic_restic_password }}"
|
|
services_backups_restic_aws_access_key_id: "{{ vault_services_backups_restic_aws_access_key_id }}"
|
|
services_backups_restic_aws_secret_access_key: "\
|
|
{{ vault_services_backups_restic_aws_secret_access_key }}"
|
|
services_backups_restic_aws_bucket_endpoint: "\
|
|
{{ vault_services_backups_restic_aws_bucket_endpoint }}"
|
|
services_backups_restic_services: "\
|
|
{% set services_backups_restic_service = {} %}\
|
|
{% for service in services_host_services.keys() %}\
|
|
{{ services_backups_restic_service.update(
|
|
{ service: {
|
|
'aws_access_key_id': services_backups_restic_aws_access_key_id,
|
|
'aws_secret_access_key': services_backups_restic_aws_secret_access_key,
|
|
'aws_keys_file': '/etc/restic-aws-keys.yml',
|
|
'aws_bucket_endpoint': services_backups_restic_aws_bucket_endpoint,
|
|
'aws_bucket_prefix': ( 'the-nine-worlds---pod-' ~ service ),
|
|
'restic_password': services_backups_restic_restic_password,
|
|
'restic_password_file': '/etc/restic.password',
|
|
'restic_keep_daily': 30,
|
|
'restic_keep_monthly': 3,
|
|
}}
|
|
) }}\
|
|
{% endfor %}\
|
|
{{ services_backups_restic_service }}"
|