Bonjour,
Here are the steps to follow after gitlab-host is up to migrate the current lab.securedrop.club.
Before provisionning gitlab-host
-
ssh -p 2222 ubuntu@lab.securedrop.club
-
sudo docker stop gitlab
-
sudo docker stop gitlab-postgresql
-
copy all credentials from ~/bootstrap into
host_vars/gitlab-host.yml
-
molecule create -s preprod # add gitlab-host
-
update lab.securedrop.club to be a CNAME of gitlab-host in
molecule/bind/bind-playbook.yml
-
ssh -A debian@IP of the new gitlab
-
sudo docker stop gitlab
-
sudo mv /opt/gitlab /opt/gitlabl.old
-
RSYNC_RSH=‘ssh -p 2222’ rsync --progress -avS root@lab.securedrop.club:/opt/gitlab/ /opt/gitlab/
-
sudo docker stop gitlab-postgresql
-
sudo mv /opt/postgresql /opt/postgresql.old
-
RSYNC_RSH=‘ssh -p 2222’ rsync --progress -avS root@lab.securedrop.club:/opt/postgresql/ /opt/postgresql/
-
sudo chown -R 101 /opt/postgresql
Run the ansible playbook again at ansible.securedrop.club
- ansible-playbook --private-key infrastructure_key … molecule/gitlab/gitlab-playbook.yml
- verify it works as expected