-
Notifications
You must be signed in to change notification settings - Fork 118
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
Templating: Only use wsrep_provider_options when galera_extra_wsrep_p… #230
base: master
Are you sure you want to change the base?
Templating: Only use wsrep_provider_options when galera_extra_wsrep_p… #230
Conversation
LGTM - @elcomtik thoughts? |
I think it brings no improvement, this variable is defined in defaults, so this condition will be always evaluated to true. |
Except if you don't use the defaults and define something else. |
How is it possible to undefine defaults? |
You'd just set a different value for the play. For example as part of host vars or groups vars or for the playbook itself. Those have higher precedence: https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable Defaults are just that, after all: Defaults. Sometimes there's a need to differ from the defaults. :D |
Ofc I didn't mean this, however that you added condition which checks if variable is defined. But I'm not aware you can undefine variable by hostvars, grouvars or extra vars |
I now see some things in here:
Note (learned the hard way): |
Yeah... I think the check should be on it having at least 1 element. |
…rovider_options is defined
2c7c8f5
to
dc9466d
Compare
This line is a bit broken. What do you want to say? |
@andanotheruser - read the last 2 bullet points in one sentence |
I was just saying that if we change, we should change it in everywhere. |
But to go back to @elcomtik points... in defaults we define an empty If we want to add your patch we need to make sure every set_fact from https://github.com/mrlesmithjr/ansible-mariadb-galera-cluster/blob/master/tasks/setup_cluster.yml#L44-L78 have a |
What sort of condition would you like to see in there? |
…rovider_options is defined
Description
Only use wsrep_provider_options when galera_extra_wsrep_provider_options is defined :)
Related Issue
Types of changes
Checklist: