Skip to content

Instantly share code, notes, and snippets.

@kylejohnson
Last active April 30, 2018 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylejohnson/5111cdb087cf35d96eabeda5e1478321 to your computer and use it in GitHub Desktop.
Save kylejohnson/5111cdb087cf35d96eabeda5e1478321 to your computer and use it in GitHub Desktop.
aptly staging -> production mirror promotion process

Initial Creation

  1. Create the xenial mirror, with all 4 comonents aptly -architectures="i386,amd64" mirror create xenial http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
  2. Update the repo to pull in the current package list aptly mirror update xenial
  3. Snapshot the current state of the xenial repo aptly snapshot create xenial-20180427 from mirror xenial
  4. Publish the 20180427 snapshot as staging aptly publish snapshot xenial-20180427 staging
  5. apt-get update && apt-get upgrade the staging servers, and have QA test staging.
  6. If QA passes, publish the 20180427 snapshot as production aptly publish snapshot xenial-20180427 production
  7. Now available at deb https://repo01/production/ xenial main restricted universe multiverse
  8. apt-get update && apt-get upgrade the production servers

Get the newest live patches, test in staging, promote to production

  1. Update the mirror aptly mirror update xenial
  2. Snapshot the current state of the repo aptly snapshot create xenial-20180430 from mirror xenial
  3. Publish the new snapshot to the staging prefix aptly publish snapshot xenial-20180430 staging
  4. apt-get update && apt-get upgrade the staging servers, and have QA test staging.
  5. If QA passes, publish the 20180430 snapshot as production aptly publish snapshot xenial-20180430 production
  6. apt-get update && apt-get upgrade the production server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment