Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
postgresql_privs - Improved roles management #502
postgresql_privs - Improved roles management #502
Changes from 31 commits
fc7bb34
11c2d65
bcef2e5
77da0c7
0e11a2e
42045c1
3c0526b
7142458
0655765
c88d507
aaf1361
a3b3372
c931255
9d87bc9
5b4ed7c
b7629bf
f1fcc08
fec8b67
3156bff
f5cb7b4
faa0dc9
495cdc6
e408a01
240fd4c
d03f2e8
6330577
e8a7dbc
35e1f91
123e5b3
4478816
d1adbdd
c0c598c
8300ac6
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Role names containing a
,
are supported by PostgreSQL. The safest way to deal with that would probably be to extend theroles
module argument to also take a list of strings, something like:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for advice.
I tried to implement it but at last I had to revert.
The approach is possible but Ansible Module needs a fixed type for parameter, that can be in this case 'str' or 'list':
The only way usable is use 'list' but this implies to forbid comma separated list, so allowing only one element as string or multiple elements in a list (as done by other core modules as yum, apt, etc.).
This is surely possible, but resulting in a breaking change, so I'm unable to implement it in a minor change PR.
I leaved the commits with modified code in branch history for reference in future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RealGreenDragon
We could still make this work by making the ansible module argument
type='raw'
, which disables type checking by ansible for that. Then we should be able to check the type "on our own" with something like to code example from my comment above.I'm unresolving this in case you want to implement it in this PR. Doing it in some other PR would also be fine for me.