-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Webhook: ability to pass extra arguments to mco #363
Conversation
The change itself looks good, just needs some documentation/examples and an rspec test update. |
@rnelson0 it seems I'm done |
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.
Sorry for the delay on reviewing this! I found one minor change, I'd like us to specify a type for new parameters so we can help users validate they have provided the correct values.
manifests/webhook/config.pp
Outdated
@@ -44,6 +44,7 @@ | |||
$configfile_symlink = '/etc/webhook.yaml', | |||
$enable_mutex_lock = $r10k::params::webhook_enable_mutex_lock, | |||
Array $ignore_environments = $r10k::params::webhook_ignore_environments, | |||
$mco_arguments = $r10k::params::webhook_mco_arguments, |
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.
This should be a String
, correct?
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.
Well, if user didn't specified this parameter then default undef
will be used so I guess it should be Variant[String, Undef]
?
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.
I think Optional[String]
is better.
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.
Indeed!
@rnelson0 done! |
Thanks for your patience! |
Continuation of a #362
This will be useful for finer mco control e.g. to pass
--no-progress
argument to reduce size of access logAlso I made some changes in authentication events logging and fixed identations