Skip to content

[QUESTION] Extra configuration files #175

Open

Description

@tiyab

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions