| Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
Ansible now instead of requiring Python 2 (that being the reason for this piece of
code to exist) it complains about using it, and issues a deprecation warning:
[DEPRECATION WARNING]: Distribution Ubuntu 18.04 on host arrobaponto.org should
use /usr/bin/python3, but is using /usr/bin/python for backward compatibility
with prior Ansible releases. A future Ansible release will default to using the
discovered platform python for this host. See https://docs.ansible.com/ansible
/2.9/reference_appendices/interpreter_discovery.html for more information. This
feature will be removed in version 2.12. Deprecation warnings can be disabled
by setting deprecation_warnings=False in ansible.cfg.
|
|
|
|
This reverts commit cb15c40682b990697087380e102cd39fca47f6d9.
Instead of the previous solution, copy the provision.yaml file before running
the Ansible playbook.
|
|
This is a sub-optimal solution, since provision.env.yaml itself is in a
different path from the generated one.
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
Use strict 400 or 500 modes:
r: 4
w: 2
x: 1
4 means read-only, while 5 means readable and executable. None are writable:
immuatable infrastructure check.
|
|
|
|
|
|
|
|
Don't destroy everything on deploy. This would destroy the volume too.
|
|
|
|
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;
|