-
Notifications
You must be signed in to change notification settings - Fork 12
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
improve robustness for approvalrule.pp #29
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hey, Sorry for getting back to this so late. I will give this a review by tommorow! |
Thanks @TraGicCode ! |
TraGicCode
approved these changes
Jul 27, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and thank you!
Thanks! Can you republish the module on the Forge too?
That way everybody can enjoy it :-)
*Kevin Reeuwijk*
Principal Sales Engineer, NEMEA
mobile: +31 6 272 33 55 1
[email protected] <[email protected]> | @KevinReeuwijk
*Puppet <http://www.puppet.com>. The shortest path to better software.*
…On Sat, Jul 27, 2019 at 12:22 PM Michael Fyffe ***@***.***> wrote:
Merged #29 <#29>
into master.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29?email_source=notifications&email_token=AGNBUR2FDLCJKBNEKYX4CQDQBQOUXA5CNFSM4H7NN2M2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSXNVB2Y#event-2514178283>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGNBUR3FTJIEP6OIJDQBRN3QBQOUXANCNFSM4H7NN2MQ>
.
|
Hi Michael,
I've published a blogpost
<https://puppet.com/blog/how-automate-windows-patching-puppet> on the
puppet.com website that uses your wsusserver module.
The example code in the blogpost uses the product_families attribute which
is in v1.1.1 of your module. But that module isn't published on the Forge
yet.
Could you please publish this version?
Thank you!
*Kevin Reeuwijk*
Principal Sales Engineer, NEMEA
mobile: +31 6 272 33 55 1
[email protected] <[email protected]> | @KevinReeuwijk
*Puppet <http://www.puppet.com>. The shortest path to better software.*
J*oin us for Puppetize PDX <http://www.puppet.com/puppetize> 9-10 October.*
On Tue, Jul 30, 2019 at 9:59 AM Kevin Reeuwijk <[email protected]>
wrote:
… Thanks! Can you republish the module on the Forge too?
That way everybody can enjoy it :-)
*Kevin Reeuwijk*
Principal Sales Engineer, NEMEA
mobile: +31 6 272 33 55 1
***@***.*** ***@***.***> | @KevinReeuwijk
*Puppet <http://www.puppet.com>. The shortest path to better software.*
On Sat, Jul 27, 2019 at 12:22 PM Michael Fyffe ***@***.***>
wrote:
> Merged #29 <#29>
> into master.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#29?email_source=notifications&email_token=AGNBUR2FDLCJKBNEKYX4CQDQBQOUXA5CNFSM4H7NN2M2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSXNVB2Y#event-2514178283>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AGNBUR3FTJIEP6OIJDQBRN3QBQOUXANCNFSM4H7NN2MQ>
> .
>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The proposed changes will improve the robustness of the approvalrule.pp manifest. With the original code, I ran into the issue that if the WSUS server is low on memory, sometimes
Get-WsusServer
fails to complete. This will trip up theunless
rule and make Puppet think it needs to re-apply the approval rule. This results in multiple identical copies of the same rule, which trips up other code that isn't expecting >1 result for a specific rule query.The new code switches to
onlyif
to account for the occasional failure inGet-WsusServer
and not have it result in duplicate rules.