Skip to content
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

Merged
merged 1 commit into from
Aug 31, 2020
Merged

Simplify service class #1414

merged 1 commit into from
Aug 31, 2020

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Aug 31, 2020

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

@puppet-community-rangefinder
Copy link

nginx::service is a class

Breaking changes to this file MAY impact these 1 modules (near match):

This module is declared in 10 of 575 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

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.
@ekohl
Copy link
Member Author

ekohl commented Aug 31, 2020

And now with a fix to make rubocop happy.

@ekohl
Copy link
Member Author

ekohl commented Aug 31, 2020

Finally green! That took too many tries for such a simple PR :P

@ekohl ekohl merged commit 2cf1d8a into voxpupuli:master Aug 31, 2020
@ekohl ekohl deleted the simplify-service branch August 31, 2020 16:16
Rubueno pushed a commit to Rubueno/puppet-nginx that referenced this pull request Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants