File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ azure_blob_storage_absent: false # Allow to delete Azure Blob Storage when delet
6363digital_ocean_spaces_create : true # if 'cloud_provider=digitalocean'
6464digital_ocean_spaces_name : " {{ patroni_cluster_name }}-backup" # Name of the Spaces Object Storage (S3 bucket).
6565digital_ocean_spaces_region : " nyc3" # The region to create the Space in.
66+ digital_ocean_spaces_access_key : " " # (required) Spaces Object Storage ACCESS KEY
67+ digital_ocean_spaces_secret_key : " " # (required) Spaces Object Storage SECRET KEY
6668digital_ocean_spaces_absent : false # Allow to delete Spaces Object Storage when deleting a cluster servers using the 'state=absent' variable.
6769
6870hetzner_object_storage_create : true # if 'cloud_provider=hetzner'
Original file line number Diff line number Diff line change 153153 - { option: "log-path", value: "/var/log/pgbackrest" }
154154 - { option: "repo1-type", value: "s3" }
155155 - { option: "repo1-path", value: "{{ pgbackrest_repo_path | default('/pgbackrest') }}" }
156- - { option: "repo1-s3-key", value: "{{ pgbackrest_s3_key | default(AWS_ACCESS_KEY_ID | default('')) }}" }
157- - { option: "repo1-s3-key-secret", value: "{{ pgbackrest_s3_key_secret | default(AWS_SECRET_ACCESS_KEY | default('')) }}" }
156+ - { option: "repo1-s3-key", value: "{{ pgbackrest_s3_key | default(digital_ocean_spaces_access_key | default( AWS_ACCESS_KEY_ID | default('') )) }}" }
157+ - { option: "repo1-s3-key-secret", value: "{{ pgbackrest_s3_key_secret | default(digital_ocean_spaces_secret_key | default( AWS_SECRET_ACCESS_KEY | default('') )) }}" }
158158 - { option: "repo1-s3-bucket", value: "{{ pgbackrest_s3_bucket | default(digital_ocean_spaces_name | default(patroni_cluster_name + '-backup')) }}" }
159159 - {
160160 option : " repo1-s3-endpoint" ,
Original file line number Diff line number Diff line change 106106- name : " Set variable 'wal_g_json' for backup in DigitalOcean Spaces Object Storage"
107107 ansible.builtin.set_fact :
108108 wal_g_json :
109- - { option: "AWS_ACCESS_KEY_ID", value: "{{ wal_g_aws_access_key_id | default(AWS_ACCESS_KEY_ID | default('')) }}" }
110- - { option: "AWS_SECRET_ACCESS_KEY", value: "{{ wal_g_aws_secret_access_key | default(AWS_SECRET_ACCESS_KEY | default('')) }}" }
109+ - { option: "AWS_ACCESS_KEY_ID", value: "{{ wal_g_aws_access_key_id | default(digital_ocean_spaces_access_key | default( AWS_ACCESS_KEY_ID | default('') )) }}" }
110+ - { option: "AWS_SECRET_ACCESS_KEY", value: "{{ wal_g_aws_secret_access_key | default(digital_ocean_spaces_secret_key | default( AWS_SECRET_ACCESS_KEY | default('') )) }}" }
111111 - {
112112 option : " AWS_ENDPOINT" ,
113113 value : " {{ wal_g_s3_endpoint | default('https://' + (digital_ocean_spaces_region | default(server_location)) + '.digitaloceanspaces.com') }}" ,
You can’t perform that action at this time.
0 commit comments