-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more information re. configuring production sites #508
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a couple of minor suggested improvements.
- `staging`: staging environment | ||
|
||
A `dev` environment should also be created if considered required, or this | ||
can be left till later., |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit:
can be left till later., | |
can be left until later., |
- Vault-encrypt secrets. Running the `generate-passwords.yml` playbook creates | ||
a secrets file at `environments/$ENV/inventory/group_vars/all/secrets.yml`. | ||
To ensure staging environments are a good model for production this should | ||
generally be moved into the `site` environment. It should be be encrypted | ||
using [Ansible vault](https://docs.ansible.com/ansible/latest/user_guide/vault.html) | ||
and then committed to the repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean that the same secrets are used for staging and production? Maybe it would be better to recommend generating different secrets for each env?
instances) it may be necessary to configure or proxy `chronyd` via an | ||
environment hook. | ||
|
||
- The cookiecutter provided tofu configurations define resources for home and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: We should probably use OpenTofu everywhere instead of just tofu
- The cookiecutter provided tofu configurations define resources for home and | |
- The cookiecutter provided OpenTofu configurations define resources for home and |
the volumes should be manually created and the resources changed to data | ||
resources. This ensures that even if the cluster is deleted via tofu, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the volumes should be manually created and the resources changed to data | |
resources. This ensures that even if the cluster is deleted via tofu, the | |
the volumes should be manually created and the resources changed to [data | |
resources](https://opentofu.org/docs/language/data-sources/). This ensures that even if the cluster is deleted via tofu, the |
|
||
Note the variable `control_ip_address` is new. | ||
|
||
Using fixed IPs will require either using admin credentials or policy changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Azimuth we handle this by saying you have to pre-allocate the FIP to the project manually (i.e. openstack floating ip create <network>
) and then put the allocated FIP into the config. Maybe we could do the same here and make control_ip_address
a data resource instead?
No description provided.