-
Notifications
You must be signed in to change notification settings - Fork 229
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
Add ability to configure custom_trusted_oid_mapping.yaml #603
Add ability to configure custom_trusted_oid_mapping.yaml #603
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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've changed the #issue
to GH-issue
in the opening message so it doesn't conflict with our issue tracker. Could you do the same in the commit message?
manifests/init.pp
Outdated
@@ -182,7 +182,7 @@ | |||
# $environment:: Default environment of the Puppet agent | |||
# | |||
# $agent_additional_settings:: A hash of additional agent settings. | |||
# Example: {stringify_facts => true} | |||
# Example: {stringify_facts => true} |
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.
Could you revert this change and other whitespace only changes?
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.
Done! Sorry! :/ Are the whitespace changes in server.pp ok?
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.
Yes, indenting is no problem.
types/custom_trusted_oid_mapping.pp
Outdated
@@ -0,0 +1,4 @@ | |||
type Puppet::Custom_trusted_oid_mapping = Hash[String, Struct[{ |
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.
We have a bug in our installer that it currently doesn't handle multi line types because it does incorrect manual parsing. We should be fixing it but in the short term I wonder if we should put it on a single line.
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.
Sure!
end | ||
|
||
it 'should have a configured custom_trusted_oid_mapping.yaml' do | ||
should contain_file("#{confdir}/custom_trusted_oid_mapping.yaml"). |
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.
We have a verify_exact_contents
helper which might be easier to use.
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 is really helpful, thanks! :)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This commit adds support to configure the $confdir/custom_trusted_oid_mapping.yaml as described in https://puppet.com/docs/puppet/5.5/config_file_oid_map.html. Fixes theforemanGH-602.
This comment has been minimized.
This comment has been minimized.
225171c
to
7acde39
Compare
This comment has been minimized.
This comment has been minimized.
Fixed review comments, thanks! :) |
Thanks! |
This commit adds support to configure the
$confdir/custom_trusted_oid_mapping.yaml as described in
https://puppet.com/docs/puppet/5.5/config_file_oid_map.html.
Fixes GH-602