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

deprecate 'priv' argument in postgresql_user #227

Merged
merged 1 commit into from
Apr 6, 2022
Merged

deprecate 'priv' argument in postgresql_user #227

merged 1 commit into from
Apr 6, 2022

Conversation

hunleyd
Copy link
Collaborator

@hunleyd hunleyd commented Apr 2, 2022

SUMMARY

Deprecate the priv argument of postgresql_user in favor of the postgresql_privs module

fixes #212

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

postgresql_user

@hunleyd hunleyd self-assigned this Apr 2, 2022
@hunleyd
Copy link
Collaborator Author

hunleyd commented Apr 2, 2022

Unsupported parameters for (ansible.legacy.command) module: warn

that doesn't appear to be my error. is the pipeline ok @Andersson007 ?

@Andersson007
Copy link
Collaborator

Andersson007 commented Apr 3, 2022

Unsupported parameters for (ansible.legacy.command) module: warn

that doesn't appear to be my error. is the pipeline ok @Andersson007 ?

@hunleyd Thanks for the PR!
Please take a look at tests/integration/targets/setup_postgresql_db/tasks/main.yml

163   - name: Reinstall internationalization files
164     shell: yum -y reinstall glibc-common || yum -y install glibc-common
165     args:
166       warn: false
167     when: locale_present is failed

I think some args have been deprecated here (or something else happened related to the warn: thing), I would re-write it somehow. I would start with removing args: warn: false.

@Andersson007
Copy link
Collaborator

Andersson007 commented Apr 3, 2022

@hunleyd As it's not something directly related, feel free to submit a separate PR. It would be much easier to backport. Once the dedicated PR is merged, we can re-launch the tests here (if no time for that, please let me know).

@hunleyd
Copy link
Collaborator Author

hunleyd commented Apr 3, 2022

I think some args have been deprecated here (or something else happened related to the warn: thing), I would re-write it somehow. I would start with removing args: warn: false.

According to the docs that arg is still valid though which is why I'm confused.

@Andersson007
Copy link
Collaborator

I'm also confused because #228 has passed...

@Andersson007
Copy link
Collaborator

Ah, no, it was just skipped

@Andersson007
Copy link
Collaborator

@hunleyd it's not valid https://docs.ansible.com/ansible/devel/collections/ansible/builtin/shell_module.html. We should choose devel in the upper left corner in this case

@Andersson007
Copy link
Collaborator

One of changelog fragments in ansible/ansible:

  1 removed_features:
  2   - Remove deprecated ``COMMAND_WARNINGS`` configuration option (https://github.com/ansible/ansible/issues/77394)
  3   - command/shell - remove deprecated ``warn`` module param

@hunleyd
Copy link
Collaborator Author

hunleyd commented Apr 5, 2022

Error when getting collection version metadata for community.general:3.0.2 from default (https://galaxy.ansible.com/api/) (HTTP Code: 429, Message: Too Many Requests Code: Unknown)
guess i'll try again later ;)

@Andersson007
Copy link
Collaborator

Error when getting collection version metadata for community.general:3.0.2 from default (https://galaxy.ansible.com/api/) (HTTP Code: 429, Message: Too Many Requests Code: Unknown) guess i'll try again later ;)

yep, we should adjust things to install c.general from git instead (i always forget about it)

@Andersson007
Copy link
Collaborator

Could you please take a look at #227 (comment) and #227 (comment) ?

@hunleyd hunleyd merged commit 16fed3c into ansible-collections:main Apr 6, 2022
@hunleyd hunleyd deleted the remove_priv_arg branch April 6, 2022 14:45
hunleyd added a commit that referenced this pull request Apr 7, 2022
Andersson007 pushed a commit that referenced this pull request Jun 20, 2022
Add comments to the existing examples that make use of the 'priv'
arguoment of the `postgresql_user` module. This was missed in #227

Signed-off-by: Douglas J Hunley <doug.hunley@gmail.com>
patchback bot pushed a commit that referenced this pull request Jun 22, 2022
Add comments to the existing examples that make use of the 'priv'
arguoment of the `postgresql_user` module. This was missed in #227

Signed-off-by: Douglas J Hunley <doug.hunley@gmail.com>
(cherry picked from commit 90aaabf)
Jamal-B added a commit to mediapart/ansible-postgresql that referenced this pull request Sep 11, 2023
Fix this warning:
```
[DEPRECATION WARNING]: Param 'priv' is deprecated. See the module docs
for more information. This feature will be removed from
community.postgreql in version 3.0.0.
```

See:
ansible-collections/community.postgresql#212
ansible-collections/community.postgresql#227
ansible-collections/community.postgresql#493
Jamal-B added a commit to mediapart/ansible-postgresql that referenced this pull request Feb 13, 2024
Fix this warning:
```
[DEPRECATION WARNING]: Param 'priv' is deprecated. See the module docs
for more information. This feature will be removed from
community.postgreql in version 3.0.0.
```

See:
ansible-collections/community.postgresql#212
ansible-collections/community.postgresql#227
ansible-collections/community.postgresql#493
Jamal-B added a commit to mediapart/ansible-postgresql that referenced this pull request Feb 13, 2024
Fix this warning:
```
[DEPRECATION WARNING]: Param 'priv' is deprecated. See the module docs
for more information. This feature will be removed from
community.postgreql in version 3.0.0.
```

See:
ansible-collections/community.postgresql#212
ansible-collections/community.postgresql#227
ansible-collections/community.postgresql#493
Jamal-B added a commit to mediapart/ansible-postgresql that referenced this pull request Feb 13, 2024
Fix this warning:
```
[DEPRECATION WARNING]: Param 'priv' is deprecated. See the module docs
for more information. This feature will be removed from
community.postgreql in version 3.0.0.
```

See:
ansible-collections/community.postgresql#212
ansible-collections/community.postgresql#227
ansible-collections/community.postgresql#493
Jamal-B added a commit to mediapart/ansible-postgresql that referenced this pull request Feb 14, 2024
Fix this warning:
```
[DEPRECATION WARNING]: Param 'priv' is deprecated. See the module docs
for more information. This feature will be removed from
community.postgreql in version 3.0.0.
```

See:
ansible-collections/community.postgresql#212
ansible-collections/community.postgresql#227
ansible-collections/community.postgresql#493
Jamal-B added a commit to mediapart/ansible-postgresql that referenced this pull request Feb 15, 2024
Fix this warning:
```
[DEPRECATION WARNING]: Param 'priv' is deprecated. See the module docs
for more information. This feature will be removed from
community.postgreql in version 3.0.0.
```

See:
ansible-collections/community.postgresql#212
ansible-collections/community.postgresql#227
ansible-collections/community.postgresql#493
Jamal-B added a commit to mediapart/ansible-postgresql that referenced this pull request Feb 15, 2024
Fix this warning:
```
[DEPRECATION WARNING]: Param 'priv' is deprecated. See the module docs
for more information. This feature will be removed from
community.postgreql in version 3.0.0.
```

See:
ansible-collections/community.postgresql#212
ansible-collections/community.postgresql#227
ansible-collections/community.postgresql#493
Jamal-B added a commit to mediapart/ansible-postgresql that referenced this pull request Feb 15, 2024
Fix this warning:
```
[DEPRECATION WARNING]: Param 'priv' is deprecated. See the module docs
for more information. This feature will be removed from
community.postgreql in version 3.0.0.
```

See:
ansible-collections/community.postgresql#212
ansible-collections/community.postgresql#227
ansible-collections/community.postgresql#493
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.

remove priv argument to the postgresql_user module
2 participants