Skip to content

Grant schema privileges#606

Open
elsoa-invitech wants to merge 1 commit intoANXS:masterfrom
elsoa-invitech:schema-grant
Open

Grant schema privileges#606
elsoa-invitech wants to merge 1 commit intoANXS:masterfrom
elsoa-invitech:schema-grant

Conversation

@elsoa-invitech
Copy link

Possible fix for #604:

You can configure the schema grant in postgresql_user_privileges array:

This will set grant for database:

    postgresql_user_privileges:
      - name: foouser              # user name
        db: bardb               # database
        privs: ALL                  # privilege
        state: present

And with this patch, you can set for the schema too:

    postgresql_user_privileges:
      - name: foouser              # user name
        db: bardb               # database
        schema: public
        privs: ALL                  # privilege
        state: present

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

Successfully merging this pull request may close these issues.

1 participant