Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't use terraform-full derivation | EuAndreh | 2019-06-09 | 1 | -3/+1 |
| | |||||
* | Create Terraform plan before shutting down running containers | EuAndreh | 2019-06-09 | 1 | -8/+8 |
| | |||||
* | Quote $() call (ShellCheck offense) | EuAndreh | 2019-06-09 | 1 | -1/+1 |
| | |||||
* | Make terraform-provider-godaddy available for Terraform | EuAndreh | 2019-06-09 | 1 | -0/+3 |
| | |||||
* | Add quote around nested quote expansion | EuAndreh | 2019-06-08 | 1 | -1/+1 |
| | | | | Thanks ShellCheck :) | ||||
* | Remove unused $PUBLIC_KEY_ONLY | EuAndreh | 2019-06-08 | 1 | -1/+0 |
| | | | | Thanks ShellCheck. | ||||
* | Generate UserKnownHostsFile dynamically instead of when rotating keys | EuAndreh | 2019-06-08 | 1 | -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. | ||||
* | CI debug: remove --verbose flag from borg create command | EuAndreh | 2019-06-08 | 1 | -1/+0 |
| | | | | THe objective is to remove the logged files from the CI log. | ||||
* | Revert "Add verbose logging for Ansible playbook command" | EuAndreh | 2019-06-07 | 1 | -1/+1 |
| | | | | This reverts commit 80ee903ac9f09c22b4ef3458393242fa929cff89. | ||||
* | Add verbose logging for Ansible playbook command | EuAndreh | 2019-06-07 | 1 | -1/+1 |
| | |||||
* | Fix boolean logic bug on ${DESTROY_VOLUME} usage | EuAndreh | 2019-06-07 | 1 | -2/+2 |
| | |||||
* | Disable SC2034 for ${DOLLAR} interpolated variable | EuAndreh | 2019-06-07 | 1 | -0/+3 |
| | |||||
* | Add ${DESTROY_VOLUME} operational toggle | EuAndreh | 2019-06-06 | 2 | -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. | ||||
* | Remove invalid --stats option from borg extract command | EuAndreh | 2019-06-06 | 1 | -1/+0 |
| | |||||
* | Fail fast on copied Bash files | EuAndreh | 2019-06-06 | 2 | -0/+2 |
| | |||||
* | Unify quoted strings from restore-backup.env.sh | EuAndreh | 2019-06-06 | 1 | -1/+1 |
| | |||||
* | Use ${DOLLAR}{VAR} to double scape bash variable in .env templates | EuAndreh | 2019-06-06 | 2 | -2/+7 |
| | |||||
* | Notify when backup fails instead od saying nothing | EuAndreh | 2019-06-06 | 1 | -1/+1 |
| | |||||
* | Allow backups to fail for now | EuAndreh | 2019-06-06 | 1 | -1/+1 |
| | |||||
* | Remove debug echo | EuAndreh | 2019-06-05 | 1 | -1/+0 |
| | |||||
* | Fix ShellCheck offenses | EuAndreh | 2019-06-05 | 3 | -3/+5 |
| | |||||
* | Restore backup in Ansible instead of Bash | EuAndreh | 2019-06-05 | 2 | -7/+4 |
| | |||||
* | Restore from backup in fresh volume | EuAndreh | 2019-06-05 | 3 | -10/+46 |
| | |||||
* | Add volume to VPS | EuAndreh | 2019-06-05 | 1 | -4/+0 |
| | | | | Don't destroy everything on deploy. This would destroy the volume too. | ||||
* | Always destroy infrastructure before applying | EuAndreh | 2019-06-05 | 1 | -0/+4 |
| | |||||
* | Uncomment accidentally commented code | EuAndreh | 2019-06-05 | 1 | -6/+6 |
| | |||||
* | Remove duplicate chmod on borg-remote | EuAndreh | 2019-06-05 | 1 | -1/+0 |
| | |||||
* | Remove ansible-lint | EuAndreh | 2019-06-05 | 1 | -6/+6 |
| | | | | It wasn't trivial to configure: Ansible tried to work on /homeless-shelter :facepalm: | ||||
* | Use specific known keys for connecting with the backup server | EuAndreh | 2019-06-05 | 2 | -3/+4 |
| | |||||
* | Change permission of borg client key | EuAndreh | 2019-06-05 | 1 | -0/+1 |
| | |||||
* | Uncomment phases from provision.sh | EuAndreh | 2019-06-05 | 1 | -13/+13 |
| | | | | | I was letting it be commented during iteration, it shouldn't have been committed this way. | ||||
* | TODOs.org | EuAndreh | 2019-06-05 | 1 | -13/+14 |
| | |||||
* | Remove unused cloud-config.env.yaml | EuAndreh | 2019-06-05 | 1 | -1/+0 |
| | |||||
* | Fix ShellCheck offenses | EuAndreh | 2019-06-05 | 2 | -2/+5 |
| | |||||
* | Use Ansible instead of Bash for provisioning | EuAndreh | 2019-06-05 | 4 | -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; | ||||
* | Split $VPS_COMMIT_SHA variable declaration for exporting | EuAndreh | 2019-05-28 | 1 | -1/+2 |
| | | | | ShellCheck offense. | ||||
* | Rotate SSH key and use correct VPS_COMMIT_SHA on provisioning | EuAndreh | 2019-05-28 | 1 | -4/+5 |
| | |||||
* | Configure git for vps-state repo in ./scripts/ci/setup.sh | EuAndreh | 2019-05-28 | 2 | -3/+5 |
| | |||||
* | Add git config metadata to enable commiting in CI | EuAndreh | 2019-05-28 | 1 | -0/+2 |
| | |||||
* | Fix mixed usage of $PLAN_FILE variable | EuAndreh | 2019-05-28 | 1 | -4/+5 |
| | | | | Split $PLAN_FILE into $PLAN_FILE_NAME and $PLAN_FILE_PATH. | ||||
* | Store plan file in vps-state too | EuAndreh | 2019-05-28 | 1 | -4/+18 |
| | |||||
* | Fix shell.nix path in nix-shell custom shebang | EuAndreh | 2019-05-28 | 2 | -2/+2 |
| | |||||
* | Split scripts into CI and VPS box | EuAndreh | 2019-05-28 | 4 | -0/+71 |