aboutsummaryrefslogtreecommitdiff
path: root/scripts (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-06-08Generate UserKnownHostsFile dynamically instead of when rotating keysEuAndreh1-0/+2
The previous solution would hardcode the server IP. This way we can change the server IP address that is hosting everything and keep the SSH keypair. Previously changing the IP address would require either calling the =./rotate-ssh-keys.sh= script or manually changing the IP address on the known-hosts.txt file. The IP address being duplicated itself was a code smell. Both SSH keypair and IP address can now be changed independently.
2019-06-08CI debug: remove --verbose flag from borg create commandEuAndreh1-1/+0
THe objective is to remove the logged files from the CI log.
2019-06-07Revert "Add verbose logging for Ansible playbook command"EuAndreh1-1/+1
This reverts commit 80ee903ac9f09c22b4ef3458393242fa929cff89.
2019-06-07Add verbose logging for Ansible playbook commandEuAndreh1-1/+1
2019-06-07Fix boolean logic bug on ${DESTROY_VOLUME} usageEuAndreh1-2/+2
2019-06-07Disable SC2034 for ${DOLLAR} interpolated variableEuAndreh1-0/+3
2019-06-06Add ${DESTROY_VOLUME} operational toggleEuAndreh2-2/+13
This way I can dynamically control whether to destroy and recreate all the existing infrastructure entirely from scratch. The advantages of doing so are: - test the non-existence of local state on every deployment; - make sure I can always recreate everything from scratch. The disadvantages are: - slower deployment times; - longer downtime during deployments.
2019-06-06Remove invalid --stats option from borg extract commandEuAndreh1-1/+0
2019-06-06Fail fast on copied Bash filesEuAndreh2-0/+2
2019-06-06Unify quoted strings from restore-backup.env.shEuAndreh1-1/+1
2019-06-06Use ${DOLLAR}{VAR} to double scape bash variable in .env templatesEuAndreh2-2/+7
2019-06-06Notify when backup fails instead od saying nothingEuAndreh1-1/+1
2019-06-06Allow backups to fail for nowEuAndreh1-1/+1
2019-06-05Remove debug echoEuAndreh1-1/+0
2019-06-05Fix ShellCheck offensesEuAndreh3-3/+5
2019-06-05Restore backup in Ansible instead of BashEuAndreh2-7/+4
2019-06-05Restore from backup in fresh volumeEuAndreh3-10/+46
2019-06-05Add volume to VPSEuAndreh1-4/+0
Don't destroy everything on deploy. This would destroy the volume too.
2019-06-05Always destroy infrastructure before applyingEuAndreh1-0/+4
2019-06-05Uncomment accidentally commented codeEuAndreh1-6/+6
2019-06-05Remove duplicate chmod on borg-remoteEuAndreh1-1/+0
2019-06-05Remove ansible-lintEuAndreh1-6/+6
It wasn't trivial to configure: Ansible tried to work on /homeless-shelter :facepalm:
2019-06-05Use specific known keys for connecting with the backup serverEuAndreh2-3/+4
2019-06-05Change permission of borg client keyEuAndreh1-0/+1
2019-06-05Uncomment phases from provision.shEuAndreh1-13/+13
I was letting it be commented during iteration, it shouldn't have been committed this way.
2019-06-05TODOs.orgEuAndreh1-13/+14
2019-06-05Remove unused cloud-config.env.yamlEuAndreh1-1/+0
2019-06-05Fix ShellCheck offensesEuAndreh2-2/+5
2019-06-05Use Ansible instead of Bash for provisioningEuAndreh4-8/+22
The deployment is not quite working, and I'm unable to test right now: DigitalOcean is returning 503 for my requests. As of this commit, I can run =ansible-playbook provider.yml= more than once and it will actually be idempotent. Notes: - SSH fingerprint are now taken from the public key file instead of manually supplying it in the terraform template using the =digitalocean_ssh_key= resource; - use Ansible instead of ad-hoc Bash scripts for provisioning the Droplets created by Terraform; - use the =filename.env.extension= to create the concrete files in CI; - use the =user_data= to add the know SSH key pair to the newly created Droplet; - add =rotate-ssh-keys.sh= utils;
2019-05-28Split $VPS_COMMIT_SHA variable declaration for exportingEuAndreh1-1/+2
ShellCheck offense.
2019-05-28Rotate SSH key and use correct VPS_COMMIT_SHA on provisioningEuAndreh1-4/+5
2019-05-28Configure git for vps-state repo in ./scripts/ci/setup.shEuAndreh2-3/+5
2019-05-28Add git config metadata to enable commiting in CIEuAndreh1-0/+2
2019-05-28Fix mixed usage of $PLAN_FILE variableEuAndreh1-4/+5
Split $PLAN_FILE into $PLAN_FILE_NAME and $PLAN_FILE_PATH.
2019-05-28Store plan file in vps-state tooEuAndreh1-4/+18
2019-05-28Fix shell.nix path in nix-shell custom shebangEuAndreh2-2/+2
2019-05-28Split scripts into CI and VPS boxEuAndreh4-0/+71