-
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 compile_mode parameter to puppetserver.conf #574
Conversation
I am not sure how could my simple change fail so many tests - will take a closer look at it, when I have the time. |
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 test the class in spec/classes/puppet_server_puppetserver_spec.rb
and set all the parameters explicitly. Please add the variable to default_params
there as well.
Other than that I think it looks good.
manifests/init.pp
Outdated
@@ -725,6 +727,7 @@ | |||
Optional[Array] $server_metrics_allowed = $::puppet::params::server_metrics_allowed, | |||
Boolean $server_puppetserver_experimental = $puppet::params::server_puppetserver_experimental, | |||
Array[String] $server_puppetserver_trusted_agents = $puppet::params::server_puppetserver_trusted_agents, | |||
Variant[Undef, Enum['off'], Enum['jit'], Enum['force']] $server_compile_mode = $puppet::params::server_compile_mode, |
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 type can be Optional[Enum['off', 'jit', 'force']]
manifests/server.pp
Outdated
@@ -449,6 +449,7 @@ | |||
Variant[Undef, Array] $metrics_allowed = $::puppet::server_metrics_allowed, | |||
Boolean $puppetserver_experimental = $::puppet::server_puppetserver_experimental, | |||
Array[String] $puppetserver_trusted_agents = $::puppet::server_puppetserver_trusted_agents, | |||
Variant[Undef, Enum['off'], Enum['jit'], Enum['force']] $compile_mode = $::puppet::server_compile_mode, |
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.
See the init.pp type comment.
Looks correct, but I'll let Travis finish before approving. |
@ekohl I believe I named the variable incorrectly in the spec test, it should be called |
Problems fixed, commits squashed, please let me know if there's any more changes I should do. |
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.
Looks good. @mmoll?
looks good, merged, díky @miksercz! |
Hello,
recently I wanted to try setting puppetserver's compile-mode to some value other than default, your module doesn't as of yet have this functionality. This PR should add it.