aboutsummaryrefslogtreecommitdiff
path: root/scripts/box (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-06-10Output all generated files on ./generated/, refactor .envrc variablesEuAndreh1-0/+11
2019-06-10Send logs via email after finishing provision.shEuAndreh1-0/+2
The email will be send for both sucessfull and failed runs.
2019-06-10Remove --progress from borg createEuAndreh1-1/+0
It shows filenames in CI output log.
2019-06-10Don't run restore backup Ansible task when not requiredEuAndreh1-7/+0
Instead of performing this task on the generated =restore-backup.sh= file, do it on provision.yaml. The boolean logic is less confusing and the interpolation is less tricky.
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-07Disable SC2034 for ${DOLLAR} interpolated variableEuAndreh1-0/+3
2019-06-06Add ${DESTROY_VOLUME} operational toggleEuAndreh1-0/+7
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 templatesEuAndreh1-2/+2
2019-06-05Remove debug echoEuAndreh1-1/+0
2019-06-05Fix ShellCheck offensesEuAndreh2-3/+3
2019-06-05Restore from backup in fresh volumeEuAndreh2-1/+20
2019-06-05Use specific known keys for connecting with the backup serverEuAndreh1-1/+1
2019-06-05Fix ShellCheck offensesEuAndreh1-0/+1
2019-06-05Use Ansible instead of Bash for provisioningEuAndreh2-0/+3
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 scripts into CI and VPS boxEuAndreh2-0/+14