Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Output all generated files on ./generated/, refactor .envrc variables | EuAndreh | 2019-06-10 | 1 | -99/+0 |
| | |||||
* | Store updated Terraform files in case of failure | EuAndreh | 2019-06-10 | 1 | -0/+8 |
| | |||||
* | ci dbg | EuAndreh | 2019-06-10 | 1 | -1/+1 |
| | |||||
* | Fix missing stdout redirection '>' character | EuAndreh | 2019-06-10 | 1 | -1/+1 |
| | |||||
* | 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 |
| | |||||
* | Change order of stderr -> stdout redirection | EuAndreh | 2019-06-10 | 1 | -2/+2 |
| | | | | Thanks ShellCheck. | ||||
* | Show in email subject if the run failed | EuAndreh | 2019-06-10 | 1 | -1/+2 |
| | |||||
* | Send logs via email after finishing provision.sh | EuAndreh | 2019-06-10 | 1 | -2/+9 |
| | | | | The email will be send for both sucessfull and failed runs. | ||||
* | 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 |
| | |||||
* | 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 | 1 | -1/+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 |
| | |||||
* | 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 |
| | |||||
* | Add ${DESTROY_VOLUME} operational toggle | EuAndreh | 2019-06-06 | 1 | -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. | ||||
* | 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 |
| | |||||
* | Fix ShellCheck offenses | EuAndreh | 2019-06-05 | 1 | -0/+2 |
| | |||||
* | Restore backup in Ansible instead of Bash | EuAndreh | 2019-06-05 | 1 | -6/+1 |
| | |||||
* | Restore from backup in fresh volume | EuAndreh | 2019-06-05 | 1 | -9/+26 |
| | |||||
* | 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 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 | 1 | -2/+3 |
| | |||||
* | 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 |
| | |||||
* | Use Ansible instead of Bash for provisioning | EuAndreh | 2019-06-05 | 1 | -5/+8 |
| | | | | | | | | | | | | | | | | | | 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 | 1 | -2/+0 |
| | |||||
* | 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 | 1 | -1/+1 |
| | |||||
* | Split scripts into CI and VPS box | EuAndreh | 2019-05-28 | 1 | -0/+35 |