aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci (unfollow)
Commit message (Collapse)AuthorFilesLines
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-06Add ${DESTROY_VOLUME} operational toggleEuAndreh1-2/+6
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-06Use ${DOLLAR}{VAR} to double scape bash variable in .env templatesEuAndreh1-0/+5
2019-06-06Notify when backup fails instead od saying nothingEuAndreh1-1/+1
2019-06-06Allow backups to fail for nowEuAndreh1-1/+1
2019-06-05Fix ShellCheck offensesEuAndreh1-0/+2
2019-06-05Restore backup in Ansible instead of BashEuAndreh2-7/+4
2019-06-05Restore from backup in fresh volumeEuAndreh1-9/+26
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 serverEuAndreh1-2/+3
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 offensesEuAndreh1-2/+4
2019-06-05Use Ansible instead of Bash for provisioningEuAndreh2-8/+19
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 boxEuAndreh2-0/+57