Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sjpb
Copy link
Collaborator

@sjpb sjpb commented Dec 19, 2024

No description provided.

@sjpb sjpb marked this pull request as ready for review December 19, 2024 12:41
@sjpb sjpb requested a review from a team as a code owner December 19, 2024 12:41
Copy link
Member

@sd109 sd109 left a 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.,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

Suggested change
can be left till later.,
can be left until later.,

Comment on lines +67 to +72
- 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.
Copy link
Member

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
Copy link
Member

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

Suggested change
- The cookiecutter provided tofu configurations define resources for home and
- The cookiecutter provided OpenTofu configurations define resources for home and

Comment on lines +83 to +84
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants