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

Patchback/backports/stable 2/51a38840d977e6184be3ef1d6f427c8cb3dc4545/pr 342 #378

Conversation

hubiongithub
Copy link
Contributor

SUMMARY
ISSUE TYPE
  • Bugfix Pull Request
  • Docs Pull Request
  • Feature Pull Request
  • New Module Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

Andersson007 and others added 30 commits April 15, 2021 10:21
…f Is_Slave and Is_Master return values, add alternatives (ansible-collections#147) (ansible-collections#149)

* mysql_replication: add deprecation warning about future replacement of Is_Slave and Is_Master return values, add alternatives

* Add changelog fragment

(cherry picked from commit 853db5a)
…to "master" state options, add announcement (ansible-collections#150) (ansible-collections#152)

* mysql_replication: Add aliases, add alternatives for the state option, announce major changes

* Change tests

* Add changelog fragment

* Fix changelog

* Update plugins/modules/mysql_replication.py

Co-authored-by: Jorge Rodriguez (A.K.A. Tiriel) <[email protected]>

* Update plugins/modules/mysql_replication.py

Co-authored-by: Jorge Rodriguez (A.K.A. Tiriel) <[email protected]>

Co-authored-by: Jorge Rodriguez (A.K.A. Tiriel) <[email protected]>
(cherry picked from commit c8f9b1c)
…le-collections#155)

* mysql: revert changes made in PR 116

* Add changelog fragment

* Fix CI

* Fix CI

* Fix CI

* Update CI

* Fix CI

(cherry picked from commit 738343d)
…backporting (ansible-collections#182)

* Add CONTRIBUTORS file (ansible-collections#166)

(cherry picked from commit ac927fd)

* Add documentation for privs with functions and procedures (ansible-collections#169)

(cherry picked from commit 6bce48e)

* Update README.md (ansible-collections#168)

* Update README.md

* Fix

* Add MAINTAINERS file

(cherry picked from commit 479edd8)

* Improve wording in README (ansible-collections#170)

* Improve wording in README

* Update README.md

Co-authored-by: Jorge Rodriguez (A.K.A. Tiriel) <[email protected]>

Co-authored-by: Jorge Rodriguez (A.K.A. Tiriel) <[email protected]>
(cherry picked from commit c909aa2)

* Update REVIEW_CHECKLIST.md (ansible-collections#171)

(cherry picked from commit 2236110)

* README: add a note how people can complain (ansible-collections#172)

* README: add a note how people can complain

* Change

* Improve

* Update README.md

Co-authored-by: Jorge Rodriguez (A.K.A. Tiriel) <[email protected]>

Co-authored-by: Jorge Rodriguez (A.K.A. Tiriel) <[email protected]>
(cherry picked from commit be4e84a)

* README: fix typos (ansible-collections#174)

(cherry picked from commit 2a80c30)

* README.md: Add link to IRC (ansible-collections#175)

(cherry picked from commit 3335a95)

* README.md, CONTRIBUTING.md: add links to the Maintainer guidelines (ansible-collections#179)

(cherry picked from commit 8fad3f8)

* Update README (ansible-collections#181)

(cherry picked from commit 6d9288d)

Co-authored-by: Alexander Skiba <[email protected]>
* Update README.md (ansible-collections#183)

* Update README.md

* Change IRC ref

(cherry picked from commit 69012a2)

* README: fix link (ansible-collections#184)

(cherry picked from commit 8ab6ea7)

* README: fix the channel name (ansible-collections#185)

(cherry picked from commit cd75992)

* CONTRIBUTING.md: replace the content with a link to Ansible contributing guidelines (ansible-collections#187)

(cherry picked from commit 56a2148)

* Update README (ansible-collections#186)

* Update README

* Fix

* Fix

* Fix

* Fix

* Add Libera.Chat link

(cherry picked from commit adb201a)

* fix typo (ansible-collections#190)

"optoin" -> "option"

(cherry picked from commit 596ba0c)

* Update README.md (ansible-collections#191)

* Update README.md

* Update README.md

(cherry picked from commit 6f02cb2)

* Add MAINTAINING.md, update README.md (ansible-collections#192)

(cherry picked from commit 0fabb2b)

Co-authored-by: Baptiste Mille-Mathias <[email protected]>
…nsible-collections#193) (ansible-collections#195)

* mysql_query: correctly reflect changed status in replace statements.

* Fix the wrong indent.

(cherry picked from commit 9055bb4)

Co-authored-by: Tong He <[email protected]>
…#200)

* mysql_role: new module

* fixes

* fixes

* Add the role class

* Check if role exists

* role.add()

* role.__get_members

* tmp

* tmp

* Change tests

* Fix

* Fix

* add_members()

* get_privs()

* tmp

* __extract_grants() filler version

* Before big work

* tmp

* drop()

* tmp

* tmp

* Big changes

* Fix

* append_members, detach_members, append_privs

* tmp

* admin option

* Add tests

* Add tests

* Fix tests

* Remove debug warning

* Fix tests

* Add documentation

* Fix MariaDB case

* Fix MariaDB

* Fix MariaDB

* Fix MariaDB

* Fix MariaDB

* Fix MariaDB

* Fix

* Fix

* Remove debug warning

* Add try-except block

* tmp

* tmp

* tmp

* Fix

* Add err handling

* Add user check

* Check admin in db

* Fix CI

* Fix CI

* Fix CI

* Fix CI

* Fix

* Add mutually exclusive options

* Small refactoring, documenting

* Documenting, refactoring

* Change docs

* Refactoring

* Refactoring

* Refactoring

* Add unit tests

* Update README.md

(cherry picked from commit ce2b269)
… that do not contain tables (ansible-collections#205) (ansible-collections#208)

* mysql_info: fix TypeError failure when there are databases that do not contain tables (ansible-collections#205)

* mysql_info: fix TypeError failure when there are databases that do not contain tables

* Add changelog fragment

(cherry picked from commit a1f419d)

* Fix sanity errors (ansible-collections#206)

(cherry picked from commit 8a17e43)
* Fix wrong impl for mysql (ansible-collections#210)

If 'mariadb' in version info, the db instance should be mariadb(reverse in code) rather than mysql.

(cherry picked from commit 6635906)

* Update README.md (ansible-collections#216)

(cherry picked from commit 4de0e25)

* mysql_user: replace VALID_PRIVS by get_valid_privs() function (ansible-collections#217)

* mysql_user: replace VALID_PRIVS by get_valid_privs() function

* Add EXTRA_PRIVS in case we need to add more privs in the future

* Add changelog fragment

(cherry picked from commit 0ce1fa1)

Co-authored-by: int32bit <[email protected]>
Co-authored-by: R.Sicart <[email protected]>
* Copy ignore-2.12.txt to ignore-2.13.txt (ansible-collections#225)

(cherry picked from commit 4f205ef)

* CI matrix update (ansible-collections#226)

* CI matrix update

* Fix test_mysql_user

* Fix CI

* Fix CI

* Fix CI

* Fix CI

* Fix CI

(cherry picked from commit fc984b2)

* integration tests: remove superfluous debug task (ansible-collections#228)

* integration tests: remove superfluous debug task

* Turn off integration tests against devel

(cherry picked from commit f47d463)

* mysql_user: fix broken compatibility for priviledge aliases (ansible-collections#233)

* mysql_user: fix broken compatibility for priviledge aliases

* add changelog fragment

* fix changelog fragment

* Improve formatting

(cherry picked from commit bb3e9fd)
* Allow the "%" character in database name (ansible-collections#227)

The naming rules for MySQL/MariaDB identifiers, when quoted, allow the
`%` character.

However, currently, the use of the `%` character in database names
results in mismatch or missing databases.

- Rewrite query to identify the databases in the catalog using
  `information_schema` instead of `SHOW DATABASES LIKE`
- Escape the `%` character in `CREATE DATABASE` query.

Signed-off-by: Nicolas Payart <[email protected]>
(cherry picked from commit 6b12435)

* mysql_db: Fix assert in tests suite (ansible-collections#239)

Signed-off-by: Nicolas Payart <[email protected]>
(cherry picked from commit 5522e45)

* mysql_db: Improve tests (ansible-collections#240)

- Define variables "db_names" and "db_formats" in defaults
- Use of the "vars" option in includes instead of default parameters
  that might be overridden by a previous task
- Use of the "loop" option in includes instead of duplicating include
  tasks
- Use a nested loop on db_names and db_formats in state_dump_import test

Signed-off-by: Nicolas Payart <[email protected]>
(cherry picked from commit e4de13a)

* MAINTAINERS file: Add new maintainer (ansible-collections#248)

(cherry picked from commit d411a8e)

Co-authored-by: Nicolas PAYART <[email protected]>
…ions#269) (ansible-collections#273)

* Prepare for distutils.version being removed in Python 3.12 (ansible-collections#267)

* Prepare for distutils.version being removed in Python 3.12

* Update plugins/module_utils/version.py

Co-authored-by: Felix Fontein <[email protected]>

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit d9e12b8)

* Use vendored version of distutils.version (ansible-collections#269)

* Use vendored version of distutils.version

* Correct fragment

* Update plugins/module_utils/version.py

Co-authored-by: Felix Fontein <[email protected]>

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 9c575b4)
* Update CONTRIBUTORS file (ansible-collections#278)

(cherry picked from commit cbdf512)

* Honor the set_default_role_all parameter (ansible-collections#282)

The set_default_role_all parameter is documented, but does nothing. This PR fixes this.

(cherry picked from commit f547b66)

* Add a changelog fragment to PR 282 (ansible-collections#283)

(cherry picked from commit 952e166)

Co-authored-by: Benoit Garret <[email protected]>
Andersson007 and others added 19 commits March 14, 2022 15:17
…ansible-collections#308)

* Add IF EXISTS clause to DROP USER statement

* Add a changelog fragment

* Fix exception

(cherry picked from commit 3a452fa)
(cherry picked from commit e6e661b)

Co-authored-by: Andrew Klychkov <[email protected]>
* Clarified error message about missing python modules (ansible-collections#279)

* Clarified error message about missing python modules, and tweak documentation to suggest overriding interpreter.

* Mention mysqlclient as another option

* Correct mysqlclient suggestions from python2 to python3

Co-authored-by: Matthew Exon <[email protected]>
(cherry picked from commit 82baf75)

* Copy ignore-2.13.txt to ignore-2.14.txt (ansible-collections#323)

* Copy ignore-2.13.txt to ignore-2.14.txt

* Fix sanity

(cherry picked from commit c16b242)

Co-authored-by: Matthew Exon <[email protected]>
…tions#329) (ansible-collections#330) (ansible-collections#332)

* mysql_role: remove redundant connection closing (fixes ansible-collections#329)

* add changelog fragment for pull request ansible-collections#330

Co-authored-by: Felix Hamme <[email protected]>
(cherry picked from commit 641894e)

Co-authored-by: betanummeric <[email protected]>
…sible-collections#338) (ansible-collections#339)

* added flush privileges to write dynamic privs into db
Fixes ansible-collections#120

* added changelog fragment

* Update changelogs/fragments/338-mysql_user_fix_missing_dynamic_privileges.yml

Co-authored-by: Andrew Klychkov <[email protected]>

Co-authored-by: Andrew Klychkov <[email protected]>
(cherry picked from commit 1dcc5ec)

Co-authored-by: bigo8525 <[email protected]>
…ns#343) (ansible-collections#348)

* Drop support for Ansible 2.9 and ansible-base 2.10

* Improve README

(cherry picked from commit eff87f9)
…ns#360)

* Add PSF-license.txt file.

* Update with actual CPython 3.9.5 license.

(cherry picked from commit b2e476c)
…ns#368) (ansible-collections#371)

* mysql_role: fix and simplify role membership detection

* add changelog fragment

* Update changelogs/fragments/368-mysql_role-fix-member-detection.yml

Co-authored-by: Andrew Klychkov <[email protected]>

Co-authored-by: Felix Hamme <[email protected]>
Co-authored-by: Andrew Klychkov <[email protected]>
(cherry picked from commit 07a7286)

Co-authored-by: betanummeric <[email protected]>
…ed (ansible-collections#322) (ansible-collections#374)

* mysql_query: fix false change reports when IF NOT EXISTS clause is used

* Fix

* Fix doc, add fragment

* Improve doc

(cherry picked from commit 6474610)

Co-authored-by: Andrew Klychkov <[email protected]>
@Andersson007
Copy link
Collaborator

closed via #382 (done for stable-2)
@hubiongithub i got it, you need to open PRs against corresponding branches you checkouted from, not against main.
Would you like to submit the backport PR against stable-1 again?

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.

3 participants