Laurent Indermuehle
dbfc252ca5
add real name for MySQL 8 privileges
2023-10-11 16:51:50 +02:00
Laurent Indermuehle
5477603583
Revert "sync fork with upstream main"
...
This reverts commit 77593b7a91e8d417eead0d3d5366ba991c767565.
I imported PR569 to be able to test on my fork, but to avoid polluting
this patch I now revert those commit.
2023-10-11 16:51:50 +02:00
Laurent Indermuehle
d38caa264f
change struct to be able to call a specific sub-list
2023-10-11 16:51:50 +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
776cb51f25
Update plugins/module_utils/mysql.py
...
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
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
56582f52a2
sanity
2023-10-11 16:51:49 +02:00
Laurent Indermuehle
0bcfdb72ab
fix users with multiple schemas with ALL PRIVILEGES only showing first
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
eee4225ec4
Add shortening of ALL PRIVILEGES for MySQL 8 that return a big list
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
4ee6659b54
cut unused import (sanity)
2023-10-11 16:51:47 +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
77c7beb514
fix case when fetch return a tuple instead of a dict
2023-10-11 16:51:47 +02:00
Laurent Indermuehle
319b7e86f3
fix undefined variable
2023-10-11 16:51:47 +02:00
Laurent Indermuehle
88af430380
linting (sanity)
2023-10-11 16:51:47 +02:00
Laurent Indermuehle
08b7842001
cut newlines added by accident
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
093fe79e17
add missing option (forgotten in previous commit)
2023-10-11 16:51:45 +02:00
Laurent Indermuehle
6123d77b99
fix malformed SQL query
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
bd944f7bf9
add host in case multiple accounts uses the same username
2023-10-11 16:51:45 +02:00
Laurent Indermuehle
fa6eded000
fix KeyError 0
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
248b30cad6
fix get_resource_limit to work with MariaDB and MySQL
...
I was getting KeyError 0
2023-10-11 16:51:44 +02:00
Laurent Indermuehle
089e1c3fb1
add a get_server_type module_utils method to detect MySQL vs MariaDB
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
2054241920
Fix KeyError 0
2023-10-11 16:51:43 +02:00
Laurent Indermuehle
123b73aa3f
attempt to fix KeyError 0 in privileges_get
2023-10-11 16:51:43 +02:00
Laurent Indermuehle
028089da6d
attempt to use privileges_get
2023-10-11 16:51:43 +02:00
Laurent Indermuehle
7f2f141275
revert changes to get_grants()
2023-10-11 16:51:43 +02:00