-
-
Notifications
You must be signed in to change notification settings - Fork 881
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
error with $worker_processes when using parser=future on Puppet 3.7.2 #806
Comments
|
I can confirm this issue. I have the same problem. EDIT: including without the |
|
Got around to investigating this... It's going to be difficult to fix. It's not as simple as changing the validation or making worker_processes an integer - it's caused by https://tickets.puppetlabs.com/browse/PUP-3587 which was fixed in puppet 3.7.3. In 3.7.2 with the future parser the bug mentioned means passing The Changing the validation won't help much since those I know 3.7.2 is supported on Debian 8 and will be for years, so I'm sympathetic, but there's a fair amount of work involved in changing the module to accommodate what was then an experimental Puppet feature that has this bug. Instead, I'll propose a workaround: don't include class nginx_helper (
$geo_mappings = {},
$string_mappings = {},
$nginx_locations = {},
$nginx_mailhosts = {},
$nginx_upstreams = {},
$nginx_vhosts = {},
$nginx_vhosts_defaults = {},
) inherits ::nginx::params {
include ::nginx::package
include ::nginx::config
include ::nginx::service
Class['::nginx::package'] -> Class['::nginx::config'] ~> Class['::nginx::service']
Class['::nginx::package'] ~> Class['::nginx::service]
create_resources('nginx::resource::upstream', $nginx_upstreams)
create_resources('nginx::resource::vhost', $nginx_vhosts, $nginx_vhosts_defaults)
create_resources('nginx::resource::location', $nginx_locations)
create_resources('nginx::resource::mailhost', $nginx_mailhosts)
create_resources('nginx::resource::map', $string_mappings)
create_resources('nginx::resource::geo', $geo_mappings)
anchor{ 'nginx::begin':
before => Class['::nginx::package'],
notify => Class['::nginx::service'],
}
anchor { 'nginx::end':
require => Class['::nginx::service'],
}
}This is untested but should work around your issue. Let me know your thoughts! |
|
Going to close this in the absence of any further comments... if we get more feedback I'll reopen if need be. |
This module does not work with the specific case where the parser=future parameter is enabled in [main] of puppet.conf and with Puppet 3.7.2 on Debian 8. In that specific case you get the following error message:
it looks like the validation of that specific nginx parameter fails...
The text was updated successfully, but these errors were encountered: