Skip to content

Allow global postgres config to leverage peer ident mapping #51830

@OrangeDog

Description

@OrangeDog

Arising from #51260 (comment)

If it were possible to globally configure host=None, runas=None and user=postgres (or have the user continue to be auto-detected) then it should be possible for users to configure much more efficient running of postgres states.

pg_hba.conf

# TYPE  DATABASE        USER            ADDRESS                 METHOD
local   all             postgres                                peer map=local

pg_ident.conf

# MAPNAME       SYSTEM-USERNAME         PG-USERNAME
local           postgres                postgres
local           root                    postgres
local           salt                    postgres  # if salt doesn't run as root

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending-discussionThe issue or pull request needs more discussion before it can be closed or merged

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions