ansible-role--duplicity/templates/etc.glenux.duplicity.backends.json.j2
2024-07-12 14:36:06 +02:00

74 lines
2.3 KiB
Django/Jinja

[
{% for backend in duplicity_backends %}
{
"description": "Cold storage {{backend.regionname | upper}} for {{duplicity_hostname}}",
"url": "pca://cold-archive-{{backend.regionname | lower}}-{{duplicity_hostname}}",
"env": [
{
"name": "PCA_AUTHURL",
"value": "https://auth.cloud.ovh.net/v3"
},
{
"name": "PCA_AUTHVERSION",
"value": "3"
},
{
"name": "PCA_PROJECT_DOMAIN_NAME",
"value": "{{backend.project_domain_name}}"
},
{
"name": "PCA_TENANTID",
"value": "{{backend.tenantid}}"
},
{
"name": "PCA_USERNAME",
"value": "{{backend.username}}"
},
{
"name": "PCA_PASSWORD",
"value": "{{backend.username}}"
},
{
"name": "PCA_REGIONNAME",
"value": "{{backend.regionname | upper}}"
}
],
"prefixes": ["cold_"]
},
{
"description": "Hot storage {{backend.regionname | upper}} for {{duplicity_hostname}}",
"url": "swift://hot-archive-{{backend.regionname | lower}}-{{duplicity_hostname}}",
"env": [
{
"name": "SWIFT_AUTHURL",
"value": "https://auth.cloud.ovh.net/v3"
},
{
"name": "SWIFT_AUTHVERSION",
"value": "3"
},
{
"name": "SWIFT_PROJECT_DOMAIN_NAME",
"value": "{{backend.project_domain_name}}"
},
{
"name": "SWIFT_TENANTID",
"value": "{{backend.tenantid}}"
},
{
"name": "SWIFT_USERNAME",
"value": "{{backend.username}}"
},
{
"name": "SWIFT_PASSWORD",
"value": "{{backend.password}}"
},
{
"name": "SWIFT_REGIONNAME",
"value": "{{backend.regionname |upper}}"
}
],
"prefixes": ["hot_"]
}{% if loop.revindex0 != 0 %},{% endif %}
{% endfor %}
]