Commit graph

273 commits

Author SHA1 Message Date
Tomas
ea79c2a965 fix merge conflicts 2024-02-21 23:48:18 +02:00
Tomas
273fd2cdcc Merge branch 'main' into password_expiration_mysql_user 2024-02-21 23:42:37 +02:00
Tomas
642d87a121 move one if statement to module initialiazation 2024-02-20 23:25:31 +02:00
Tomas
ef058c4714 add change log fragment 2024-02-20 22:30:57 +02:00
Tomas
3e10ac4851 typo and no_log remove for password_expire* vars 2024-02-20 22:04:53 +02:00
tompal3
494b537359
Update plugins/module_utils/user.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2024-02-20 21:54:50 +02:00
tompal3
c415325901
Update plugins/module_utils/user.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2024-02-20 21:36:15 +02:00
tompal3
40e43ac76a
Update plugins/module_utils/user.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2024-02-20 21:34:11 +02:00
tompal3
7eb35e3b99
Update plugins/modules/mysql_user.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2024-02-20 21:33:40 +02:00
tompal3
2cf33e1907
Update plugins/modules/mysql_user.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2024-02-20 21:31:05 +02:00
tompal3
a3dbfda916
Update plugins/modules/mysql_user.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2024-02-20 21:30:50 +02:00
tompal3
5b54cd34db
Update plugins/modules/mysql_user.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2024-02-20 21:30:34 +02:00
Andrew Klychkov
32718ca295
Update MAINTAINERS file (#612) 2024-01-25 07:55:51 +01:00
Andrew Klychkov
e34209b3f8
Fix sanity issues (#609)
* Fix sanity issues

* Remove ignore entries
2024-01-23 11:27:47 +01:00
Andrew Klychkov
5ed3eaf3ee
Version 2.*.* is EOL (#605) 2024-01-19 15:51:47 +01:00
William Felipe Welter
852c19a78a
Using show all slaves status when using MariaDB to be consistent with MySQL (#602)
* Using `show all slaves status` whe using MariaDB to be consistent
with the MySQL behaviour.

* Fixing lint issues

* Fix issue by using dict attribute

* Fix unit tests

* fix lint test

* Add unit tests

* Fix unit tests

* Adding changlog fragment

* Update changelogs/fragments/602-show-all-slaves-status.yaml

Co-authored-by: Laurent Indermühle <laurent.indermuehle@pm.me>

* Refactoring change by moving common logic to the module_utils

* Fix sanity checks

* Fix sanity checks

* Adding lines to fix sanity checks

* Fixing sanity checks

* Update changelogs/fragments/602-show-all-slaves-status.yaml

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>

* Removing is_mariadb and is_mysql functions

---------

Co-authored-by: Laurent Indermühle <laurent.indermuehle@pm.me>
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2024-01-19 15:41:29 +01:00
ncc
051aa48d8d
feat[mysql_user]: add support for mysql user attributes (#604)
* add support for mysql user attributes

* fix CI

* write integration tests

* requested changes pt. 1

* requested changes pt. 2

* fix changelog fragment

---------

Co-authored-by: n-cc <ncc@github.com>
2024-01-19 15:37:28 +01:00
tompal3
682fae4125
Apply suggestions from code review
Co-authored-by: Laurent Indermühle <laurent.indermuehle@pm.me>
2024-01-09 08:46:59 +02:00
tompal3
379b25e8fa
Update tests/integration/targets/test_mysql_user/tasks/test_password_expire.yml
Co-authored-by: Laurent Indermühle <laurent.indermuehle@pm.me>
2024-01-09 08:39:38 +02:00
tompal3
e255551950
Update plugins/modules/mysql_user.py
Co-authored-by: Laurent Indermühle <laurent.indermuehle@pm.me>
2024-01-09 08:38:57 +02:00
Tomas
9b13b59865 fix verify as well 2023-11-30 15:04:42 +02:00
Tomas
a9abc8a281 fix unneeded commits 2023-11-30 15:02:39 +02:00
Tomas
d506d833d9 Merge remote-tracking branch 'origin/main' into password_expiration_mysql_user 2023-11-30 14:51:19 +02:00
Laurent Indermühle
81ab18d56c
chore: fix conditional statements should not include jinja 2 templating (#599)
Thanks to @tompal3 for your contribution
2023-11-30 13:39:34 +01:00
Tomas
23db3f42b1 make integration tests work 2023-11-29 14:23:21 +02:00
Tomas
778fbd497c make integration tests work 2023-11-29 09:16:05 +02:00
Tomas
a69c0e91d6 docs and sanity and integration test fix 2023-11-28 22:54:40 +02:00
Tomas
6d73c24526 some changes and integration tests 2023-11-28 21:28:04 +02:00
Tomas
10780aee98 add one more if block for version check 2023-11-22 13:23:59 +02:00
Tomas
721dd8e613 sanity check and default values 2023-11-22 11:44:20 +02:00
Tomas
314ec02955 initial commit for password_expire support 2023-11-22 10:32:57 +02:00
Andrew Klychkov
8dfab12bae
README: Add forum info (#589) 2023-11-13 12:35:39 +01:00
Laurent Indermühle
0dbedf57cb
Document MySQL and MariaDB don't store roles with same manner (#584) 2023-10-26 14:21:28 +02:00
Laurent Indermühle
fd0b1919c3
Release 3.8.0 commit (#583) 2023-10-26 11:08:35 +02:00
Laurent Indermühle
f31d5a10c1
fix list of tested ansible-core versions (#582) 2023-10-25 15:11:40 +02:00
Laurent Indermühle
3ef9bda95f
feat[mysql_info]: add 'users_info' filter (#580)
* add documentation for new mysql_info users_info filter

* Add integration tests for mysql_info users_info

* fix list parsing when cursor come from mysql_info

Mysql_info use a DictCursor and mysql_user a normal cursor.

* fix case when an account as same user but different host and password

* document why certain authentications plugins cause issues

* add version_added for users_info to the documentation

* Add 'users' description to differentiate it from 'users_info'

---------

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2023-10-23 11:26:46 +02:00
lkthomas
6b7cc14989
switch "PRIMARY" to "MASTER" on description (#573)
* switch "PRIMARY" to "MASTER" on description

* Update plugins/modules/mysql_replication.py

* Add author to contributors lists

---------

Co-authored-by: Thomas Lau <lkthomas@localhost.localdomain>
Co-authored-by: Thomas Lau <thomas.lau@gfo-x.com>
2023-10-12 13:50:54 +02:00
kmarse
033b4c74f9
Fix column uppercasing (#569)
* Add integrations tests for column case sensitive name

* add a warning when column_case_sensitive in not set

* add announce default will change in in 4.0.0

* fix tests for engine that don't wrap column in backticks

* add filter because only MySQL 5.7 is case sensitive for users privs

* add kmarse and myself to the authors

* add kmarse to the contributors list

---------

Co-authored-by: Laurent Indermühle <laurent.indermuehle@epfl.ch>
Co-authored-by: Andrew Klychkov <aklychko@redhat.com>
2023-10-06 16:08:46 +02:00
Laurent Indermühle
8c2b6b0b3c
Add ansible-core stable-2.15 and stable-2.16 to tests matrix now that "devel" links to 2.17 (#574)
* Add stable-2.15 and 2.16 now that devel link to 2.17

* document which ansible-core version we support

* add sanity ignore for ansible-core 2.17

* cut sanity ignore for 2.12 and 2.13

* Cut ansible-core 2.12 and 2.13 from GHA test matrix
2023-09-29 09:29:43 +02:00
Andrew Klychkov
94392826e1
README: Define project's mission statement (#561)
* README: Define project's mission statement

* Add suggestion
2023-07-20 09:57:51 +02:00
Pavel Rabel
b79fd94d51
Doc Attributes (#555)
* Added Attributes section

* Added Attributes section
2023-05-29 09:25:19 +02:00
Andrew Klychkov
a81b6fc081
Release 3.7.2 commit (#556) 2023-05-25 13:30:17 +02:00
betanummeric
2fcfb103f6
fix tests (include deprecation) (#554)
* tests: change deprecated "include" to "include_tasks"

* tests: fix syntax

---------

Co-authored-by: Felix Hamme <felix.hamme@ionos.com>
2023-05-24 10:00:47 +02:00
betanummeric
b6ad472c78
fix connection arguments for MySQLdb <2.0 !=1.0 (#553)
* fix connection arguments for MySQLdb <2.0 !=1.0

* add changelog fragment

---------

Co-authored-by: Felix Hamme <felix.hamme@ionos.com>
2023-05-23 15:32:21 +02:00
Andrew Klychkov
bff05ce8dd
Release 3.7.1 commit (#552) 2023-05-22 09:34:59 +02:00
betanummeric
7f7b2f76a6
fix connection arguments mysql driver compatability (#551)
* only use the "database" connection argument with driver versions where "db" is deprecated/removed

* connection arguments: fix KeyError

* connection arguments: fix KeyError

* connection arguments: use 'passwd' instead of 'password' with older drivers

* add changelog fragment

* refactoring: use "get_connector_name" in "mysql_connect"

---------

Co-authored-by: Felix Hamme <felix.hamme@ionos.com>
2023-05-18 09:28:34 +02:00
Laurent Indermühle
b03c9aac57
Document the Releases Support Timeline (#543)
* docs: add releases support timeline

* docs: clarify when the 2 years of support starts

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>

* docs: fix support status of the current branch

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>

* docs: fix date to end of support for branch 2.x.y

* fix README.md

---------

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
Co-authored-by: betanummeric <40263343+betanummeric@users.noreply.github.com>
2023-05-10 13:10:20 +02:00
Andrew Klychkov
bd90ce7cc6
MAINTAINERS: add new maintainer (#548) 2023-05-10 12:54:25 +02:00
Laurent Indermühle
04e197fe55
Release 3.7.0 commit (#544) 2023-05-05 13:32:40 +02:00
Laurent Indermühle
30a2015f6c
feat: Add support for the connector pymysql 1.0.2 (#533)
* Document connector-version relationship

* Fix missing option in the command usage documentation

* Rephrase commands descriptions

* Document that pymysql 0.10.0 disabled its warnings

* Disable tests for pymysql newer than 0.10.0 because the behavior changed

* Enable integration tests for pymysql 1.0.2

* Add exclusion to avoid requesting nonexistent test containers

* Cut comments about PyMySQL 1.0.2 need to be fixed

* docs: explain PyMySQL 0.10.0+ returns changed when using IF EXISTS
2023-05-04 11:14:58 +02:00