-
Notifications
You must be signed in to change notification settings - Fork 4
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
I5590 migrate ansible tower db #5606
base: main
Are you sure you want to change the base?
Conversation
365d6cf
to
5dd1c54
Compare
5ebaa30
to
f3979aa
Compare
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.
Hooray for getting postgresql 13 working on Rocky. I have a few ideas for making this easier for Future Us to manage and understand, see below.
15f7685
to
f399024
Compare
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.
This is a big step forward, thanks! I saw a few things I wasn't sure about - see below.
notify: restart local postgres | ||
|
||
- name: PostgreSQL | rotate the logs for postgresql | ||
template: | ||
ansible.builtin.template: |
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.
Do both PostgreSQL installations write logs to the same place? Or do we need to make sure the logrotate template can handle two locations?
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.
they do not (short answer)
Modify template for RHEL based machines (pair with @acozine)
when: | ||
- postgresql_cluster != false | ||
- inventory_hostname in postgresql_cluster.followers | ||
- include_tasks: logical_replication.yml | ||
|
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.
Put these back.
installs postgresql-13 on Rocky Linux add control loops for platforms
the values of Ubuntu and Redhat differ
Our datadog role does not (yet) work with RHEL
changing the name to ansible-db1 will need more changes to happen.
Co-authored-by: Alicia Cozine <[email protected]>
Co-authored-by: Alicia Cozine <[email protected]>
Co-authored-by: Alicia Cozine <[email protected]>
the ansible-db is restricted to ansible hosts and does not send logs to datadog. Remove the task that adds hosts to pg_hba and modify the logs to be readable only to the postgresql user
we use dnf to distinguish it from apt based installation give the initialization task a clearer name
Co-authored-by: Alicia Cozine <[email protected]>
this can be future work to make RHEL based os'es to place their files using the FHS that mirror's Debian (Ubuntu) Co-authored-by: Alicia Cozine <[email protected]> Co-authored-by: Angel Ruiz <[email protected]>
cf2b3aa
to
a876576
Compare
Install and configure postgresql 13 on Rocky Linux
Related to #5590