aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/setup.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move envsubst calls out of setup.sh into deploy.shEuAndreh2019-06-111-7/+0
|
* 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-101-16/+8
|
* Provision DNS entries using DigitalOcean instead of DNS registrarEuAndreh2019-06-101-1/+0
| | | | | | | | | | | | | 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.
* 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.
* Use ${DOLLAR}{VAR} to double scape bash variable in .env templatesEuAndreh2019-06-061-0/+5
|
* Restore backup in Ansible instead of BashEuAndreh2019-06-051-1/+3
|
* Remove duplicate chmod on borg-remoteEuAndreh2019-06-051-1/+0
|
* Remove unused cloud-config.env.yamlEuAndreh2019-06-051-1/+0
|
* Fix ShellCheck offensesEuAndreh2019-06-051-2/+4
|
* Use Ansible instead of Bash for provisioningEuAndreh2019-06-051-3/+11
| | | | | | | | | | | | | | | | | | 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;
* Configure git for vps-state repo in ./scripts/ci/setup.shEuAndreh2019-05-281-1/+5
|
* Fix shell.nix path in nix-shell custom shebangEuAndreh2019-05-281-1/+1
|
* Split scripts into CI and VPS boxEuAndreh2019-05-281-0/+22