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

Webhook: ability to pass extra arguments to mco #363

Merged
merged 7 commits into from
Apr 19, 2017

Conversation

nike38rus
Copy link
Contributor

Continuation of a #362

This will be useful for finer mco control e.g. to pass --no-progress argument to reduce size of access log

Also I made some changes in authentication events logging and fixed identations

@rnelson0
Copy link
Member

rnelson0 commented Apr 9, 2017

The change itself looks good, just needs some documentation/examples and an rspec test update.

@nike38rus
Copy link
Contributor Author

@rnelson0 it seems I'm done

Copy link
Member

@rnelson0 rnelson0 left a 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.

@@ -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,
Copy link
Member

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?

Copy link
Contributor Author

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] ?

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed!

@nike38rus
Copy link
Contributor Author

@rnelson0 done!

@rnelson0 rnelson0 merged commit 538e0d9 into voxpupuli:master Apr 19, 2017
@rnelson0
Copy link
Member

Thanks for your patience!

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.

2 participants