Skip to content

Add ability to recover from gitlab-ctl cleanse

Nick Westbury requested to merge cleanse-recovery into master

After running gitlab-ctl cleanse the machine will be left without an /etc/gitlab folder. This causes Ansible to fail when it tries to copy anything to the dir.

TASK [gitlab-rails : Copy GCP service account file] ****************************
fatal: [geo-1k-primary-gitlab-rails-1]: FAILED! => changed=false 
  checksum: 1adb2a603ec00ed991e033b128cbd2cda5242cf0
  msg: Destination directory /etc/gitlab does not exist

Using the ensure task will create the dir if it doesn't exist and do nothing if it does. This is useful during testing as we can just cleanse and rebuild single machines easier.

Merge request reports