Updated restore playbook to preserve existing server-side SSH configuration #5886
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Status
Ready for review
Description of Changes
Fixes #5833 .
This PR:
restore
ansible role, splitting out tasks into includes by functionalityPreserving the existing SSH configuration simplifies the restore process and prevents a known error where the process fails when reloading the Application Server tor configuration.
Testing
prerequisites
~/Persistent/securedrop/install_files/ansible-base
.v2-only:
v2-only.tar.gz
) with the following commands:reload Tor
task.v2+v3:
copy the admin workstation
~/.ssh/config
file to a temporary location, i.e.~/sshconfig.bak
via an admin workstation terminal, attempt to restore from the v2+v3 backup (
v2nv3.tar.gz
) with the following commands:reload Tor
task.wait a few minutes for Tor to restart on the server, and then complete the restore process with the following commands:
ssh app uptime
&&ssh mon uptime
)v3-only:
copy the admin workstation
~/.ssh/config
file to a temporary location, i.e.~/sshconfig.bak
via an admin workstation terminal, attempt to restore from the v3-only backup (
v3-only.tar.gz
) with the following commands:reload Tor
task.wait a few minutes for Tor to restart on the server, and then complete the restore process with the following commands:
ssh app uptime
&&ssh mon uptime
)Deployment
Deployed with GUI or manual update of admin workstation - no server-side change.
Checklist
If you made non-trivial code changes:
Choose one of the following: