aboutsummaryrefslogtreecommitdiff
path: root/scripts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* provision.yaml: Use environment value of VPS_VOLUME_NAMEEuAndreh2020-08-021-1/+2
|
* s/See failed run:/See run:/EuAndreh2019-06-131-1/+1
|
* Specify email address when rotating keysEuAndreh2019-06-131-2/+2
|
* deploy.sh: assert dir before running finish-phaseEuAndreh2019-06-111-0/+3
| | | | | Avoid failures that happened between a pushd and a popd to fail to call ./scripts/ci/mail.sh.
* Don't fail when =terraform apply= is a noopEuAndreh2019-06-111-1/+1
|
* Remove duplicated dangling shutdown codeEuAndreh2019-06-111-5/+0
|
* Run shutdown with Ansible instead of BashEuAndreh2019-06-111-15/+13
|
* Run Terraform refresh when not destroying everythingEuAndreh2019-06-111-1/+2
|
* Debug failing Ansible logsEuAndreh2019-06-111-1/+1
|
* s/mail_debug_log/finish_phase/EuAndreh2019-06-111-2/+2
|
* Log when finished runnign trapEuAndreh2019-06-111-0/+2
|
* Debug failing Ansible playbook logsEuAndreh2019-06-111-1/+1
|
* Log if trap was called on error or normal exitEuAndreh2019-06-111-2/+10
|
* Debug failing run of Ansible playbookEuAndreh2019-06-111-1/+1
|
* Run git crypt lock inside trap functionEuAndreh2019-06-111-7/+7
|
* Move envsubst calls out of setup.sh into deploy.shEuAndreh2019-06-112-7/+9
|
* Set the directory before sourcingEuAndreh2019-06-111-1/+1
|
* Quiet import GPGEuAndreh2019-06-101-1/+1
|
* Allow envrc to be sourced in CIEuAndreh2019-06-101-3/+3
|
* Reorder setup.shEuAndreh2019-06-101-6/+6
|
* Output all generated files on ./generated/, refactor .envrc variablesEuAndreh2019-06-105-52/+47
|
* Store updated Terraform files in case of failureEuAndreh2019-06-101-0/+8
|
* Only send log email when running on CIEuAndreh2019-06-101-0/+7
|
* ci dbgEuAndreh2019-06-101-1/+1
|
* Fix missing stdout redirection '>' characterEuAndreh2019-06-101-1/+1
|
* Trust commited keyEuAndreh2019-06-101-1/+2
|
* Add filename to logs.txt outputEuAndreh2019-06-101-1/+1
| | | | | Taken from: https://stackoverflow.com/questions/5917413/concatenate-multiple-files-but-include-filename-as-section-headers
* Put terraform output in email logs.txtEuAndreh2019-06-101-3/+3
|
* Commit public key instead of downloading itEuAndreh2019-06-101-1/+1
|
* Import GPG key before provisioningEuAndreh2019-06-101-0/+1
|
* Disable SC2016 warningsEuAndreh2019-06-101-0/+2
|
* Change order of stderr -> stdout redirectionEuAndreh2019-06-101-2/+2
| | | | Thanks ShellCheck.
* Encrypt attached logEuAndreh2019-06-101-1/+3
|
* Show in email subject if the run failedEuAndreh2019-06-102-2/+16
|
* Send logs via email after finishing provision.shEuAndreh2019-06-103-2/+44
| | | | The email will be send for both sucessfull and failed runs.
* Remove --progress from borg createEuAndreh2019-06-101-1/+0
| | | | It shows filenames in CI output log.
* Use create_known_hosts_file function instead of duplicating behaviourEuAndreh2019-06-101-3/+6
|
* Fail CI run if backup failsEuAndreh2019-06-101-3/+3
|
* Don't run restore backup Ansible task when not requiredEuAndreh2019-06-101-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 twiceEuAndreh2019-06-101-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 failEuAndreh2019-06-101-2/+2
|
* Provision DNS entries using DigitalOcean instead of DNS registrarEuAndreh2019-06-102-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"EuAndreh2019-06-091-6/+6
| | | | This reverts commit c8963acd02a5095bafb46c79abd45eec45059707.
* Don't use terraform-full derivationEuAndreh2019-06-091-3/+1
|
* Create Terraform plan before shutting down running containersEuAndreh2019-06-091-8/+8
|
* Quote $() call (ShellCheck offense)EuAndreh2019-06-091-1/+1
|
* Make terraform-provider-godaddy available for TerraformEuAndreh2019-06-091-0/+3
|
* Add quote around nested quote expansionEuAndreh2019-06-081-1/+1
| | | | Thanks ShellCheck :)
* Remove unused $PUBLIC_KEY_ONLYEuAndreh2019-06-081-1/+0
| | | | Thanks ShellCheck.
* Generate UserKnownHostsFile dynamically instead of when rotating keysEuAndreh2019-06-081-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.