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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop EoL Ubuntu code #2481
Drop EoL Ubuntu code #2481
Conversation
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.
These conditions can be simplified:
spec/classes/mod/php_spec.rb
293: next if (facts[:os]['release']['major'].to_i > 15 && facts[:os]['name'] == 'Ubuntu') ||
spec/defines/vhost_spec.rb
596: if os_facts[:os]['release']['major'].to_i >= 18 && os_facts[:os]['name'] == 'Ubuntu'
This deletes Ubuntu 16 and older code. Those versions are already gone from metadata.json.
@@ -290,9 +290,8 @@ | |||
end | |||
|
|||
# all the following tests are for legacy php/apache versions. They don't work on modern ubuntu and redhat 8 | |||
next if (facts[:os]['release']['major'].to_i > 15 && facts[:os]['name'] == 'Ubuntu') || |
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 think this should be simplified to still test for Ubuntu, just like Debian.
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.
The tests were skipped for those and I updated the code below to match the Debian OS family. The logic should be the same now.
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.
Ah yes, I didn't read it carefully enough. Feels like we can also apply the same tricky to the Red Hat OS family below, but that can be done in another PR. Overall I think using next
to skip tests below something is a poor practice. Indenting is much more reliable IMHO.
This deletes Ubuntu 16 and older code. Those versions are already gone from metadata.json.
Summary
Provide a detailed description of all the changes present in this pull request.
Additional Context
Add any additional context about the problem here.
Related Issues (if any)
Mention any related issues or pull requests.
Checklist
puppet apply
)