-
Notifications
You must be signed in to change notification settings - Fork 89
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
mysql_variables option to remove set variables #618
Comments
@rafi0101 hello, do you mean something like setting it to its default using the @laurent-indermuehle and other maintainers any thoughts from you too? |
Yes, that would be an option with the That might be an option for the check mode, if you wrap the whole thing in a transaction and discard it again after validating if changed: https://stackoverflow.com/a/58499162/10403502 Yes for example, add |
side question: does mysql_variables support MariaDB 10.11? Because I get the following error message: |
Anyway, could you please open a separate issue? Needs to be checked |
I never used community.mysql.mysql_variables to persist settings. Thank you @rafi0101 to made me aware that you can do `set @@global.some_var = DEFAULT. That's a great feature! I read here that MariaDB can do the same:
You're right. We must test MariaDB 10.11 since it's a long term service. But as noted above, they may be some tests to add and issues that need fixing when adding this version to our CI's workflow. So I think it should be a separate PR. Now. Instead of community.mysql.mysql_variables:
variable: some_var
value: DEFAULT
state: present But what to do if a user pass both Also, the module lake documentation for the This seems like a cool PR to work on. Adding MariaDB 10.11 may be trickier. Somebody wants to take those PR? I can't right now :( |
@laurent-indermuehle thanks for the feedback!
or we maybe could just ignore it
@rafi0101 the question is still relevant :) If there are any other volunteers, welcome! Please put it explicitly that you're working on it. |
Since I only use MariaDB and I/we have now found out that the persist function is not available there, this module is unfortunately less interesting for me :( |
SUMMARY
mysql_variables should support the option to remove already set variables (and the mysql/mariadb default value should be applied)
ISSUE TYPE
COMPONENT NAME
community.mysql.mysql_variables
ADDITIONAL INFORMATION
You have set a variable that you no longer need. How can I remove it without searching for the default value and setting it myself or editing mysqld-auto.cnf manually?
Should work for all available modes.
The text was updated successfully, but these errors were encountered: