Commit graph

43 commits

Author SHA1 Message Date
Laurent Indermuehle
34505c9b4f
add option to not summarize all privileges
We summarize ALL for mysql_info, but mysql_user needs to compare
actual privileges with the ones provided by ansible.
2023-10-11 16:51:51 +02:00
Laurent Indermuehle
318f95c0a9
typo 2023-10-11 16:51:50 +02:00
Laurent Indermuehle
4e4d50112a
fix column case to be identical on source and destination 2023-10-11 16:51:50 +02:00
Laurent Indermühle
9b3f0c6cad
Update plugins/modules/mysql_info.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2023-10-11 16:51:49 +02:00
Laurent Indermuehle
d7de96a601
document that sha256 and caching_sha2 plugins doesn't work properly
Even if you use print_identified_with_as_hex to prevent the password to
contains binary characters. I think this is because PyMySQL and
mysqlclient wrap the password in quote. We could try to convert to
another python connector, like mysql-connector-python.
2023-10-11 16:51:49 +02:00
Laurent Indermuehle
7b7d2f5500
document correct return form 2023-10-11 16:51:49 +02:00
Laurent Indermuehle
f79ee2b83c
Update variable name for consistency 2023-10-11 16:51:49 +02:00
Laurent Indermuehle
40f47f6828
Cut support of Proxy privileges because it causes too many issues 2023-10-11 16:51:49 +02:00
Laurent Indermuehle
77c6a68a02
document how to use mysql_info to clone accounts to another server 2023-10-11 16:51:48 +02:00
Laurent Indermuehle
ddd3812574
fix case when user as no other privileges than USAGE 2023-10-11 16:51:48 +02:00
Laurent Indermuehle
122625c477
fix space in front of first privilege of the list 2023-10-11 16:51:48 +02:00
Laurent Indermuehle
74ffacfa0f
fix key for username in the output to match mysql_user input 2023-10-11 16:51:48 +02:00
Laurent Indermuehle
af327daa8e
fix key for privileges in the output to match mysql_user input 2023-10-11 16:51:48 +02:00
Laurent Indermuehle
f80ef4f9b4
fix sanity tests for python 2.6 the right way (my bad) 2023-10-11 16:51:47 +02:00
Laurent Indermuehle
4093de51dd
fix sanity tests for python 2.6 in ansible-core 2.12 for good 2023-10-11 16:51:47 +02:00
Laurent Indermuehle
89b42e2b83
fix sanity tests for Python 2.6 found in ansible-core 2.12 2023-10-11 16:51:47 +02:00
Laurent Indermuehle
88af430380
linting (sanity) 2023-10-11 16:51:47 +02:00
Laurent Indermuehle
0c17778f63
document better description 2023-10-11 16:51:46 +02:00
Laurent Indermuehle
2ea7120f2e
document output form 2023-10-11 16:51:46 +02:00
Laurent Indermuehle
2acc3d2a77
document what's missing from the output 2023-10-11 16:51:46 +02:00
Laurent Indermuehle
487036e2ff
add set to work no matter the order 2023-10-11 16:51:46 +02:00
Laurent Indermuehle
5dd0321607
add filter to return an auth key when not empty 2023-10-11 16:51:46 +02:00
Laurent Indermuehle
83ad999038
document returned value 2023-10-11 16:51:45 +02:00
Laurent Indermuehle
c1248cb692
cut unused option (will be in authentications.auth_string) 2023-10-11 16:51:45 +02:00
Laurent Indermuehle
eb840f6ae4
WIP: get user authentications plugins 2023-10-11 16:51:45 +02:00
Laurent Indermuehle
9f34b926bf
fix returned value since get_resource_limit is used by other methods 2023-10-11 16:51:45 +02:00
Laurent Indermuehle
1c93c1bd66
Add user resources limit to the output 2023-10-11 16:51:44 +02:00
Laurent Indermuehle
1e24343375
Fix USAGE line not filtered 2023-10-11 16:51:44 +02:00
Laurent Indermuehle
3288c22e64
fix quote around special priv Proxy for root on `@%` 2023-10-11 16:51:44 +02:00
Laurent Indermuehle
cf4c230725
Add the privileges in the returned values 2023-10-11 16:51:44 +02:00
Laurent Indermuehle
028089da6d
attempt to use privileges_get 2023-10-11 16:51:43 +02:00
Laurent Indermuehle
d7beeec410
WIP attempt to retrieve all users privileges 2023-10-11 16:51:42 +02:00
Pavel Rabel
b79fd94d51
Doc Attributes (#555)
* Added Attributes section

* Added Attributes section
2023-05-29 09:25:19 +02:00
Laurent Indermühle
a5f3296d73
mysql_info - Add connector_name and connector_version to returned value (#497)
* Add methods to retrieve connector name and version
* Document that mysqlclient is also named MySQLdb
* Document version_added
* Add connector name and version in the returned block
* Cut condition to display any name that is return

In case of MySQLdb is renamed in mysqlclient. In that case, the
integration tests will catch this the day we update the connector
version.

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2023-01-30 13:35:24 +01:00
Andrew Klychkov
3ff1fad5f3
Docs: change yes/no to true/false (#480) 2023-01-03 11:24:59 +01:00
Andrew Klychkov
f1d63e3fc8
Docs: add info how to cope with a protocol-related connection error using login_unix_socket argument (#420) 2022-08-26 11:38:41 +02:00
Andrew Klychkov
a1f419d541
mysql_info: fix TypeError failure when there are databases that do not contain tables (#205)
* mysql_info: fix TypeError failure when there are databases that do not contain tables

* Add changelog fragment
2021-08-20 08:17:34 +02:00
Sebastian Gumprich
a5ee4b3d1a
add mysql_full_version and suffix return variable (#115)
* add mysql_full_version and suffix return variable

add changelog fragment

* rephrase changelog fragment

* Update plugins/modules/mysql_info.py

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

* Add changes as per PR review

* Add tests for new suffix output parameter

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
Co-authored-by: Jorge-Rodriguez <jorge.rodriguez@futurice.com>
2021-03-16 09:10:52 +02:00
Andrew Klychkov
ea54a44c76
mysql_info: fix documentation (#67) 2020-11-26 13:12:51 +03:00
Jorge Rodriguez (A.K.A. Tiriel)
8c79011dbd
Disable hostname check (#38)
* Add changelog fragment

* Add check_hostname option

* Propagate check_hostname option across the collection

* Update documentation fragment

* Propagate test to all other plugins

* Remove stray line

* Give test user privileges to run test operations

* Extend integration tests job matrix

* Add caution note to documentation fragment.

* Update matrix job name

* Rearrange job matrix

* Fix sanity issues

* Fix issue with mysqldb silently failing to update out of range variables

* Fix variable overwrite

* Ignore `check_hostname` when using MySQLdb

* Update plugins/doc_fragments/mysql.py

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

* Update plugins/doc_fragments/mysql.py

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

* Update changelogs/fragments/35-disable-hostname-check.yml

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

Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-10-12 21:19:43 +03:00
Andrew Klychkov
c255d7ece2
mysql modules: fix examples to use FQCN (#3) 2020-07-13 10:52:49 +01:00
Felix Fontein
4a3cfa6a32
Fixups (#2)
* Add changelog fragments from c.g.

* Adjust version_added to 0.1.0, which comes closer to the truth.

* Add changelogs/.plugin-cache.yaml to gitignore.
2020-07-12 12:35:55 +01:00
Ben Mildren
c26bc095ad
initial commit (#1)
* initial commit

* removed remaining references to community.general

* enabled integration pipeline

* switched from preconfigured replication topology to simple multinode install

* updated version from 1.0.0 to 0.1.0
2020-07-10 17:16:58 +01:00