Artifact
d8b1fae71fe1fc221b1ee1ccb63ec4787b6abf49:
Update Snapshot Used by Droplet Deployer
- Create a new droplet from the existing "Droplet Deployer" snapshot.
- Make whatever changes are required (user is
qa
, password is held in release_config repo).
- On the droplet, run
sudo rm -rf /root/.ssh/ && sudo shutdown -h now
- Once the droplet has shut down, take a new snapshot called
Droplet Deployer
.
- Replicate the snapshot to all regions (click the "More" option, then "Add to Region").
- Rename the old snapshot to
Old Droplet Deployer
(check "Created" values).
- Generate a new Personal Access Token.
- To get the ID of the newly-created snapshot, run
curl -sX GET -H "Content-Type: application/json" -H "Authorization: Bearer <token here>" "https://api.digitalocean.com/v2/images?private=true" | sed -n 's/.*"id":\([^,]*\),"name":"Droplet Deployer".*/\n\1\n\n/p'
- If this doesn't yield an ID, it may be due to pagination of the response; you may need to add
&page=2
(or whatever value the last page has) to the end of the URL after private=true
. Alternatively, check that the new snapshot has finished being created.
- Replace the existing value of
"imageId"
in Droplet Deployer's config.json file with the new one.
- Test the Droplet Deployer tool.
- Commit and push the change.
- Delete the Personal Access Token.
- Delete the
Old Droplet Deployer
snapshot.
- Delete the freshly-shutdown Droplet used to create the new snapshot.