Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Debug failing run of Ansible playbook | EuAndreh | 2019-06-11 | 1 | -1/+1 | |
| | ||||||
* | Run git crypt lock inside trap function | EuAndreh | 2019-06-11 | 1 | -7/+7 | |
| | ||||||
* | Move envsubst calls out of setup.sh into deploy.sh | EuAndreh | 2019-06-11 | 2 | -7/+9 | |
| | ||||||
* | Set the directory before sourcing | EuAndreh | 2019-06-11 | 1 | -1/+1 | |
| | ||||||
* | Quiet import GPG | EuAndreh | 2019-06-10 | 1 | -1/+1 | |
| | ||||||
* | Allow envrc to be sourced in CI | EuAndreh | 2019-06-10 | 1 | -3/+3 | |
| | ||||||
* | Reorder setup.sh | EuAndreh | 2019-06-10 | 1 | -6/+6 | |
| | ||||||
* | Output all generated files on ./generated/, refactor .envrc variables | EuAndreh | 2019-06-10 | 5 | -52/+47 | |
| | ||||||
* | Store updated Terraform files in case of failure | EuAndreh | 2019-06-10 | 1 | -0/+8 | |
| | ||||||
* | Only send log email when running on CI | EuAndreh | 2019-06-10 | 1 | -0/+7 | |
| | ||||||
* | ci dbg | EuAndreh | 2019-06-10 | 1 | -1/+1 | |
| | ||||||
* | Fix missing stdout redirection '>' character | EuAndreh | 2019-06-10 | 1 | -1/+1 | |
| | ||||||
* | Trust commited key | EuAndreh | 2019-06-10 | 1 | -1/+2 | |
| | ||||||
* | Add filename to logs.txt output | EuAndreh | 2019-06-10 | 1 | -1/+1 | |
| | | | | | Taken from: https://stackoverflow.com/questions/5917413/concatenate-multiple-files-but-include-filename-as-section-headers | |||||
* | Put terraform output in email logs.txt | EuAndreh | 2019-06-10 | 1 | -3/+3 | |
| | ||||||
* | Commit public key instead of downloading it | EuAndreh | 2019-06-10 | 1 | -1/+1 | |
| | ||||||
* | Import GPG key before provisioning | EuAndreh | 2019-06-10 | 1 | -0/+1 | |
| | ||||||
* | Disable SC2016 warnings | EuAndreh | 2019-06-10 | 1 | -0/+2 | |
| | ||||||
* | Change order of stderr -> stdout redirection | EuAndreh | 2019-06-10 | 1 | -2/+2 | |
| | | | | Thanks ShellCheck. | |||||
* | Encrypt attached log | EuAndreh | 2019-06-10 | 1 | -1/+3 | |
| | ||||||
* | Show in email subject if the run failed | EuAndreh | 2019-06-10 | 2 | -2/+16 | |
| | ||||||
* | Send logs via email after finishing provision.sh | EuAndreh | 2019-06-10 | 3 | -2/+44 | |
| | | | | The email will be send for both sucessfull and failed runs. | |||||
* | Remove --progress from borg create | EuAndreh | 2019-06-10 | 1 | -1/+0 | |
| | | | | It shows filenames in CI output log. | |||||
* | Use create_known_hosts_file function instead of duplicating behaviour | EuAndreh | 2019-06-10 | 1 | -3/+6 | |
| | ||||||
* | Fail CI run if backup fails | EuAndreh | 2019-06-10 | 1 | -3/+3 | |
| | ||||||
* | Don't run restore backup Ansible task when not required | EuAndreh | 2019-06-10 | 1 | -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. | |||||
* | Create generated-known-hosts.txt twice | EuAndreh | 2019-06-10 | 1 | -0/+1 | |
| | | | | | Since it can change after being destroyed by Terraform, we can't create it before and use it later. | |||||
* | Allow shutdown process to fail | EuAndreh | 2019-06-10 | 1 | -2/+2 | |
| | ||||||
* | Provision DNS entries using DigitalOcean instead of DNS registrar | EuAndreh | 2019-06-10 | 2 | -2/+2 | |
| | | | | | | | | | | | | | This way we can implement dynamic (provision-time) Floating IP, instead of a hardcoded pre-created Floating IP address. Related changes: - remove =terraform-godaddy= provider, use =digitalocean_record= instead; - create =generated-known-hosts= after provisioning instead of during =setup.sh=: use the =$(terraform output public_floating_ip)= value to make this file dynamic; - remote the =$PINNED_IP= and =$TF_VAR_floating_ip= variables; - add type and descriptions to variable declarations in Terraform recipe. | |||||
* | Revert "Create Terraform plan before shutting down running containers" | EuAndreh | 2019-06-09 | 1 | -6/+6 | |
| | | | | This reverts commit c8963acd02a5095bafb46c79abd45eec45059707. | |||||
* | 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 | |
| |