Commit graph

270 commits

Author SHA1 Message Date
Laurent Indermuehle
072e8376ce
Disable role tests 2024-04-10 09:56:55 +02:00
Laurent Indermuehle
3b2f5a58eb
Document URL of the repository for the action ansible-test-gh-action 2024-04-10 09:09:09 +02:00
Laurent Indermuehle
043eb94d89
fix error "vars should be dict" 2024-04-09 18:14:07 +02:00
Laurent Indermuehle
2214aa571b
Attempt to fix docker_image assignation 2024-04-09 16:32:27 +02:00
Laurent Indermuehle
7a717b358c
Fix empty var due to scope of each command 2024-04-09 15:57:32 +02:00
Laurent Indermuehle
376bdd4227
Attempt to fix docker_image_multiline assignation 2024-04-09 15:54:38 +02:00
Laurent Indermuehle
12c101ec44
fix yamllint false positive 2024-04-09 15:49:42 +02:00
Laurent Indermuehle
4cf0393569
fix docker_image var assignation 2024-04-09 15:40:14 +02:00
Laurent Indermuehle
7f237f7aec
Bump ubuntu
Latest ansible-test doesn't work with old ubuntu. See here for more
info: https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml#L83-L91
2024-04-09 15:19:10 +02:00
Laurent Indermuehle
90ef20f26e
fix typo 2024-04-09 10:12:25 +02:00
Laurent Indermuehle
0c09c999a7
Attempt to fix GHA line folding 2024-04-09 10:11:38 +02:00
Laurent Indermuehle
ff485edeb9
Cut python 3.9 for devel in roles tests 2024-04-09 08:49:03 +02:00
Laurent Indermuehle
9400ec206e
Bump action to prevent deprecation warnings 2024-04-09 08:48:43 +02:00
Laurent Indermuehle
bcee62b99f
Add back python 3.8 and 3.9 for stable2.15 2024-04-09 08:48:20 +02:00
Laurent Indermuehle
b7e85c4730
Cut duplicate exclude 2024-04-09 08:47:36 +02:00
Laurent Indermuehle
415f93851e
Drop tests for Ansible core 2.14 and add 2.17 2024-04-08 17:54:20 +02:00
Laurent Indermuehle
94ae4e5c5e
Add tests for Ansible core 2.17 (devel is 2.18 today) 2024-04-08 17:40:32 +02:00
Andrew Klychkov
bfe2fdc3ff
mysql_user: fix ed25512 plugin handling (#619) 2024-03-14 07:19:39 +01:00
Andrew Klychkov
c99c19a489
README.md: update Communication guide (#617) 2024-02-27 10:27:19 +01:00
Andrew Klychkov
52a11d7235
Release 3.9.0 commit (#616) 2024-02-22 10:53:01 +01:00
tompal3
40af258d86
password_expire support for mysql_user (#598)
* initial commit for password_expire support

* sanity check and default values

* add one more if block for version check

* some changes and integration tests

* docs and sanity and integration test fix

* make integration tests work

* make integration tests work

* fix unneeded commits

* fix verify as well

* Update plugins/modules/mysql_user.py

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

* Update tests/integration/targets/test_mysql_user/tasks/test_password_expire.yml

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

* Apply suggestions from code review

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

* Update plugins/modules/mysql_user.py

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

* Update plugins/modules/mysql_user.py

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

* Update plugins/modules/mysql_user.py

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

* Update plugins/modules/mysql_user.py

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

* Update plugins/module_utils/user.py

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

* Update plugins/module_utils/user.py

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

* Update plugins/module_utils/user.py

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

* typo and no_log remove for password_expire* vars

* add change log fragment

* move one if statement to module initialiazation

* fix merge conflicts

* fix order

* some fixes

* set no_log to true for password word containing keys

* fix sanity error

* Update changelogs/fragments/598-password_expire-support-for-mysql_user.yml

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

---------

Co-authored-by: Laurent Indermühle <laurent.indermuehle@pm.me>
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2024-02-22 10:31:01 +01:00
Andrew Klychkov
21fe52d8f1
CONTRIBUTING.md: add a detailed guide (#615) 2024-02-22 10:19:08 +01: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
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
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
Laurent Indermühle
426084a131
Fix the Makefile for integration tests not using the Python Venv (#532)
* Fix venv not being used by keeping the same shell

Also fix "-set -x" command not found.

* Fix missing option in the command usage documentation

* Document connector-version relationship

* Fix missing option in the command usage documentation

* Rephrase commands descriptions

* Document that you need to kill the ansible-test container yourself
2023-04-25 16:19:41 +02:00
Andrew Klychkov
9124b1f575
Copy ignore.txt for the devel branch (#529) 2023-04-07 13:36:27 +02:00
Maximilian Stinsky
526e674e6f
Add MAX_STATEMENT_TIME resource limit (#523)
* Add MAX_STATEMENT_TIME to resource_limits

* Move version check for resource_limits to implementations
2023-04-07 10:20:49 +02:00