-
-
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
dont deploy "ssl on" on nginx 1.15 or newer #1225
Conversation
8bbbe7d
to
75af0d5
Compare
manifests/params.pp
Outdated
@@ -121,5 +121,13 @@ | |||
$sites_available_group = $_module_parameters['root_group'] | |||
$sites_available_mode = '0644' | |||
$super_user = true | |||
if fact('nginx_version') { | |||
$add_listen_directive = versioncmp(fact('nginx_version'), '1.15.0') ? { |
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.
Isn't this equal to $add_listen_directive = versioncmp(fact('nginx_version'), '1.15.0') < 0
?
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 has some issues in the past with versioncmp() when the first param is undef, that's why I wrapped it within the if statement.
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 meant the ? { ...}
part. The full oneliner would be $add_listen_directive = !fact('nginx_version') or versioncmp(fact('nginx_version'), '1.15.0') < 0
but that's not really readable.
fixes voxpupuli#1224. the option 'ssl on' within a server block is deprecated since nginx 1.15.0.
dont deploy "ssl on" on nginx 1.15 or newer
fixes #1224. the option 'ssl on' within a server block is deprecated since nginx 1.15.0.
Pull Request (PR) description
This Pull Request (PR) fixes the following issues