DCD-742: Updates manifest structure in ansible

This commit is contained in:
Varun Arbatti
2019-10-10 14:51:06 +11:00
parent 8254482761
commit 46a2bad4b8

View File

@@ -59,8 +59,8 @@
# FIXME: The manifest format is still undecided so the # FIXME: The manifest format is still undecided so the
# following usages will need to be updated once it settles.. # following usages will need to be updated once it settles..
atl_backup_id: "{{ atl_backup_manifest.name }}" atl_backup_id: "{{ atl_backup_manifest.name }}"
atl_backup_db_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest.db_dump | basename }}" atl_backup_db_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest.artifacts.db.location.value | basename }}"
atl_backup_home_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest.shared_home_dump | basename }}" atl_backup_home_dest: "{{ atl_installer_temp }}/{{ atl_backup_manifest.artifacts.shared_home.location.value | basename }}"
# FIXME: Here we fetch the backups. However we may wish to stream # FIXME: Here we fetch the backups. However we may wish to stream
# these directly from S3 to the target DB/FS to avoid requiring # these directly from S3 to the target DB/FS to avoid requiring
@@ -69,16 +69,16 @@
aws_s3: aws_s3:
mode: get mode: get
overwrite: different overwrite: different
bucket: "{{ atl_backup_manifest.db_dump | urlsplit('hostname') }}" bucket: "{{ atl_backup_manifest.artifacts.db.location.value | urlsplit('hostname') }}"
object: "{{ atl_backup_manifest.db_dump | urlsplit('path') }}" object: "{{ atl_backup_manifest.artifacts.db.location.value | urlsplit('path') }}"
dest: "{{ atl_backup_db_dest }}" dest: "{{ atl_backup_db_dest }}"
- name: Fetch Home backup from S3 - name: Fetch Home backup from S3
aws_s3: aws_s3:
mode: get mode: get
overwrite: different overwrite: different
bucket: "{{ atl_backup_manifest.shared_home_dump | urlsplit('hostname') }}" bucket: "{{ atl_backup_manifest.artifacts.shared_home.location.value | urlsplit('hostname') }}"
object: "{{ atl_backup_manifest.shared_home_dump | urlsplit('path') }}" object: "{{ atl_backup_manifest.artifacts.shared_home.location.value | urlsplit('path') }}"
dest: "{{ atl_backup_home_dest }}" dest: "{{ atl_backup_home_dest }}"
- name: Install distro-specific restore support packages - name: Install distro-specific restore support packages