mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
Merged in quick-fix-fake-tar-db-dump (pull request #46)
DCD-798: Fix saving shared home archive as tar instead of db dump when fetchin from S3 Approved-by: Varun Arbatti
This commit is contained in:
@@ -68,7 +68,9 @@
|
|||||||
overwrite: different
|
overwrite: different
|
||||||
bucket: "{{ atl_backup_manifest.artifacts.db.location.location | urlsplit('hostname') }}"
|
bucket: "{{ atl_backup_manifest.artifacts.db.location.location | urlsplit('hostname') }}"
|
||||||
object: "{{ atl_backup_manifest.artifacts.db.location.location | urlsplit('path') }}"
|
object: "{{ atl_backup_manifest.artifacts.db.location.location | urlsplit('path') }}"
|
||||||
dest: "{{ atl_backup_db_dest }}"
|
# We save the backup as a .tar file so that the postgresql_db module uses pg_restore instead of psql to do restore
|
||||||
|
# This can be removed when ansible 2.10 is released
|
||||||
|
dest: "{{ atl_backup_db_dest }}.tar"
|
||||||
|
|
||||||
- name: Fetch Home backup from S3
|
- name: Fetch Home backup from S3
|
||||||
aws_s3:
|
aws_s3:
|
||||||
@@ -76,9 +78,7 @@
|
|||||||
overwrite: different
|
overwrite: different
|
||||||
bucket: "{{ atl_backup_manifest.artifacts.sharedHome.location.location | urlsplit('hostname') }}"
|
bucket: "{{ atl_backup_manifest.artifacts.sharedHome.location.location | urlsplit('hostname') }}"
|
||||||
object: "{{ atl_backup_manifest.artifacts.sharedHome.location.location | urlsplit('path') }}"
|
object: "{{ atl_backup_manifest.artifacts.sharedHome.location.location | urlsplit('path') }}"
|
||||||
# We save the backup as a .tar file so that the postgresql_db module uses pg_restore instead of psql to do restore
|
dest: "{{ atl_backup_home_dest }}"
|
||||||
# This can be removed when ansible 2.10 is released
|
|
||||||
dest: "{{ atl_backup_home_dest }}.tar"
|
|
||||||
|
|
||||||
- name: Install distro-specific restore support packages
|
- name: Install distro-specific restore support packages
|
||||||
include_tasks: "{{ ansible_distribution|lower }}.yml"
|
include_tasks: "{{ ansible_distribution|lower }}.yml"
|
||||||
|
|||||||
Reference in New Issue
Block a user