Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Extend postgresql service definition #13

Merged
merged 7 commits into from
Jul 3, 2023
Merged

Conversation

p-j-smith
Copy link
Contributor

Fixes #10

Requires #12 to be merged first (as that pr updates the ansible-lint pre-commit hook)

  • define a variable postgresql_service.directory for extending the service configuration, defaults to:
"/etc/systemd/system/{{ postgresql_service_name }}.service.d"
  • update the default postgresql_service.filename:
filename: "/etc/systemd/system/{{ postgresql_service_name }}.service.d/postgresql_service.conf"
  • add a task to ensure postgresql_service.directory exists
  • remove the .include command from the pg_hba.conf.j2 template

@p-j-smith p-j-smith requested a review from drmatthews July 3, 2023 14:24
Copy link
Contributor

@drmatthews drmatthews left a comment

Choose a reason for hiding this comment

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

Looks good!

Just a thought, perhaps we could add renovate to this repo to track pre-commit hook versions? And perhaps versions in requirements.txt (unless we pin as they are for just for molecule)?

@p-j-smith
Copy link
Contributor Author

perhaps we could add renovate to this repo to track pre-commit hook versions?

good idea! I'll open an issue

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

Successfully merging this pull request may close these issues.

Method of extending PostgreSQL service unit configuration is deprecated
2 participants