-
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 server_puppetserver_trusted_certificate_extensions
#758
Add server_puppetserver_trusted_certificate_extensions
#758
Conversation
04e60aa
to
0d5be00
Compare
server_puppetserver_trusted_certificate_extensions
Can this get a review? (I was messaged on Puppet Community slack today. @chadh is planning PRs in the same area). |
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.
Mostly looks good, some small improvements in the tests.
<%= scope.call_function( | ||
'to_json_pretty', | ||
[ | ||
{'allow' => @server_trusted_agents + ['$1'] + @server_trusted_certificate_extensions.map { |extension| { 'extensions' => extension } } } | ||
] | ||
).lines.to_a[1..-2].map{ |line| " #{line}"}.join | ||
-%> |
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 migrated away from puppetlabs-hocon because puppetlabs-hocon because back then the support wasn't really clear. Looking at how they still update it I do wonder if we should reconsider. However, probably better to merge it now.
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 it'd be much easier for users to add their own configs in their profiles if it still did use puppetlabs-hocon
0d5be00
to
f6e75c6
Compare
Accepts an array of hashes to allow for more complicated setups. Typical use would probably just be a single array element such as... ```puppet class { 'puppet': ... server_puppetserver_trusted_certificate_extensions => [{ 'pp_authorization' => 'catalog' }], ... } ```
f6e75c6
to
d43fbee
Compare
Accepts an array of hashes to allow for more complicated setups.
Typical use would probably just be a single array element such as...