Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Dokku from AWS #402

Open
2 of 11 tasks
strugee opened this issue Apr 14, 2024 · 3 comments
Open
2 of 11 tasks

Migrate Dokku from AWS #402

strugee opened this issue Apr 14, 2024 · 3 comments
Labels
Tech Relevant to the SRE/Technical committee

Comments

@strugee
Copy link
Member

strugee commented Apr 14, 2024

Checklist:

  • Provision new host Spin up an OSUOSL Dokku host seagl-terraform#76
  • Establish a Wireguard connection from the OSUOSL machine to the AWS VPC (so databases are accessible)
  • Run Ansible against new host (minus Dokku app stuff? idk)
  • rsync data (check Dokku backup and restore guide)
  • Shut down Dokku
  • rsync data
  • Shut down host
  • Take final snapshot
  • Switch DNS
  • Switch Nextbutt Office WOPI allowlist
  • File bug to pull databases on-prem

Please do make edits to this list if you see problems/oversights.

@strugee strugee added the Tech Relevant to the SRE/Technical committee label Apr 14, 2024
@AndrewKvalheim
Copy link
Member

Duplicate of #326, and we should consider https://github.com/SeaGL/seagl-ansible/pull/4#issuecomment-1455184354 though I wouldn’t want it to be a blocker.

strugee added a commit to SeaGL/seagl-terraform that referenced this issue Aug 26, 2024
This will eventually replace the AWS box.

Ref SeaGL/organization#402
strugee added a commit to SeaGL/seagl-terraform that referenced this issue Aug 26, 2024
This will eventually replace the AWS box.

Ref SeaGL/organization#402
strugee added a commit to SeaGL/seagl-terraform that referenced this issue Aug 29, 2024
This will eventually replace the AWS box.

Ref SeaGL/organization#402
strugee added a commit to SeaGL/seagl-terraform that referenced this issue Sep 2, 2024
This will eventually replace the AWS box.

Ref SeaGL/organization#402
@strugee
Copy link
Member Author

strugee commented Sep 16, 2024

Wireguard setup checklist:

  • Authorize the Wireguard port in the AWS SG
  • Ditto OSUOSL-side
  • Copy AWS pubkey to OSUOSL WG config
  • Bring both interfaces up
  • Test db connectivity

@strugee
Copy link
Member Author

strugee commented Nov 13, 2024

Commands to rsync:

$ ssh -A dokku.host.seagl.org
$ sudo -i --preserve-env=SSH_AUTH_SOCK
# rsync -aHAXz --progress --rsync-path="sudo rsync" [email protected]:/home/dokku /home/dokku/ # Note that trailing slashes are very important to rsync
# rsync -aHAXz --progress --delete --dry-run --rsync-path="sudo rsync" [email protected]:/home/dokku /home/dokku/
# rsync -aHAXz --progress --rsync-path="sudo rsync" [email protected]:/var/lib/dokku/ /var/lib/dokku/
# rsync -aHAXz --progress --delete --dry-run --delete --rsync-path="sudo rsync" [email protected]:/var/lib/dokku/ /var/lib/dokku/

You'll need to remove --dry-run as appropriate of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tech Relevant to the SRE/Technical committee
Projects
None yet
Development

No branches or pull requests

2 participants