Page MenuHomePhabricator

Create playbook for rolling back production deployments
Open, Needs TriagePublic5 Estimated Story Points

Description

Currently, rolling back a production deployment is an error-prone, manual process, non-atomic involving deleting symlinks and re-creating them on all three web servers. With an Ansible playbook this could be automated and executed in a small time frame on the server.

Acceptance Criteria

Implementation notes

  • The playbook should receive a variable called target_deployment, containing the release-YYYMMDDHHMM directory name of the deployment the user wants to roll back to. It should also receice a variable called environment, running it either on test or production (automatically selecting the right path on the server).
  • Show a list of release directory names
    • store ls output to variable
    • use message command to output the variable
  • Prompt user to pick a release to roll back to
  • Fail if the target_deployment directory does not exist in the path
  • Change the symlink target of current-release-htdocs to the target_deployment path

Event Timeline

Restricted Application added a project: WMDE-FUN-Team. · View Herald TranscriptNov 3 2020, 8:25 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
kai.nissen updated the task description. (Show Details)Nov 24 2020, 10:15 AM
kai.nissen set the point value for this task to 5.
kai.nissen moved this task from Incubation to Heap on the WMDE-FUN-Funban-2020 board.
AbbanWMDE moved this task from Heap to Doing on the WMDE-FUN-Funban-2020 board.
AbbanWMDE removed AbbanWMDE as the assignee of this task.Nov 27 2020, 2:25 PM
AbbanWMDE moved this task from Doing to Code Review on the WMDE-FUN-Funban-2020 board.
AbbanWMDE added a subscriber: AbbanWMDE.
AbbanWMDE moved this task from Doing to Heap on the WMDE-FUN-Funban-2020 board.