-
-
Notifications
You must be signed in to change notification settings - Fork 875
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
Simplify service class #1414
Simplify service class #1414
Conversation
nginx::service is a classBreaking changes to this file MAY impact these 1 modules (near match):This module is declared in 10 of 575 indexed public
|
aa69fe3
to
49f5b89
Compare
49f5b89
to
e958dce
Compare
It's valid to pass in undef values. That makes the OpenBSD check redundant. The same goes for the restart command. That removes pretty much all logic so there is no more benefit to having class parameters. That's why it now uses all the variables directly from the nginx class. The has{status,restart} parameters default to true since Puppet 2.7 so can be removed.
e958dce
to
ede91a6
Compare
And now with a fix to make rubocop happy. |
Finally green! That took too many tries for such a simple PR :P |
Simplify service class
It's valid to pass in undef values. That makes the OpenBSD check redundant. The same goes for the restart command. That removes pretty much all logic so there is no more benefit to having class parameters. That's why it now uses all the variables directly from the nginx class. The has{status,restart} parameters default to true since Puppet 2.7 so they can be removed.
Replaces #1209