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

[QUESTION] Extra configuration files #175

Open
tiyab opened this issue Oct 26, 2017 · 0 comments
Open

[QUESTION] Extra configuration files #175

tiyab opened this issue Oct 26, 2017 · 0 comments

Comments

@tiyab
Copy link

tiyab commented Oct 26, 2017

Hi,
The way I am using PostgreSQL is, once installed, I do not modify the file /etc/postgresql/[VERSION]/main/postgresql.conf.
I prefer to create extra configuration files that I put in /etc/postgresql/9.6/[VERSION]/conf.d/ since files in *.conf directory are automatically loaded.
That way I have:

  • ../conf.d/general.conf in which I set common parameters like listen_addresses = '*' and other stuffs.
  • ../conf.d/replication.conf if I have to set a replication

Other files that could be managed are: .psqlrc, .pgpass or pg_ident.

For the moment, I am managing everything through salt/postgres/init.sls with some file.managed. But I am under the impression of missing something by doing it this way.

So my question is would be a good idea to manage extra configuration files with this formula?

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

No branches or pull requests

1 participant