Skip to content
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

galera::status must be conditionally included #148

Merged
merged 3 commits into from
Feb 9, 2020

Conversation

efoft
Copy link
Contributor

@efoft efoft commented Dec 16, 2019

Now galera::status in just included unconditionally in galera::validation so setting status_check to false doesn't prevent installing clustercheck script and xinetd service in case validation = true. I suggest to use for validation either status user/password if they are given and status_check enabled or to use root account as failback

manifests/validate.pp Show resolved Hide resolved
@fraenki fraenki self-assigned this Dec 19, 2019
@fraenki
Copy link
Member

fraenki commented Dec 19, 2019

@efoft Sorry for not being clear on this. We should keep and use all three class parameters as OPTIONALs, this includes $user and $password. Could you update your submission again? Thanks :)

@efoft
Copy link
Contributor Author

efoft commented Dec 19, 2019

definately, no problem! :)
@fraenki, Would you mind if I set them all to undef instead of $galera::status_* since they are optional? because if let's say we set status_check to false, galera::status won't be included and effectively this 3 params become undef anyway...

@fraenki fraenki merged commit 6f8bdf3 into markt-de:master Feb 9, 2020
@fraenki
Copy link
Member

fraenki commented Feb 9, 2020

@efoft Merged, thanks!

fraenki added a commit that referenced this pull request Feb 10, 2020
We need to first evaluate $status_check, otherwise it would never
be used. Using the root account is only a fallback.

While here, remove the obsolete parameters; it's a breaking change,
but we're not going to include this in a bugfix release anyways.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants