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

Node manager switch #64

Merged
merged 4 commits into from Mar 11, 2020
Merged

Node manager switch #64

merged 4 commits into from Mar 11, 2020

Conversation

bwilcox
Copy link
Contributor

@bwilcox bwilcox commented Feb 21, 2020

Discovered a use case where compiler group B was not being created when the infrastructure did not have a puppetdb replica, but did have a master replica. This caused compilers classified for cluster B to not be classified since the group did not exist.

This update addresses that.

@bwilcox bwilcox marked this pull request as ready for review March 6, 2020 17:05
@reidmv
Copy link
Contributor

reidmv commented Mar 9, 2020

@bwilcox I was looking at this, and wondering if trying to fix the issue upstream of the if statement will let us keep the number of logic checks down. Gonna try this build with extra-large. Can you take a look and see if you think the logic is sound?

bwilcox and others added 4 commits March 9, 2020 16:24
…present without a standalone puppetdb replica.
To try and avoid dealing with the complexity of PuppetDB database host
picking at the end of the manifest, see if having a sane class parameter
default solves the problem cleanly. If it does, we can do a simple
switch on replica/no-replica to create the B groups.
It doesn't like having an optional parameter come before a non-optional
one. Since parameters are moving around a bit, add some comments to
clarify their intended usage.
@reidmv
Copy link
Contributor

reidmv commented Mar 10, 2020

@bwilcox I validated that this works great for Extra Large. Have you had a chance to glance over it for the Large use case?

@reidmv
Copy link
Contributor

reidmv commented Mar 11, 2020

Tested w/ Large + HA. B groups are both created, look correct. 👍

@reidmv reidmv merged commit 3f10171 into puppetlabs:master Mar 11, 2020
@bwilcox bwilcox deleted the node_manager_switch branch April 6, 2022 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants