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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop EoL Debian 9 and older code #2479

Merged
merged 1 commit into from Oct 10, 2023
Merged

Conversation

bastelfreak
Copy link
Collaborator

Debian 9 was already removed from metadata.json and isn't supported anymore. This PR drops some code leftovers.

Summary

Provide a detailed description of all the changes present in this pull request.

Additional Context

Add any additional context about the problem here.

  • Root cause and the steps to reproduce. (If applicable)
  • Thought process behind the implementation.

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 馃煝 Spec tests.
  • 馃煝 Acceptance tests.
  • Manually verified. (For example puppet apply)

@bastelfreak bastelfreak self-assigned this Oct 10, 2023
@bastelfreak bastelfreak requested review from ekohl, smortex and a team as code owners October 10, 2023 09:36
@@ -286,8 +286,7 @@
)
}

if (facts[:os]['release']['major'].to_i < 18 && facts[:os]['name'] == 'Ubuntu') ||
(facts[:os]['release']['major'].to_i < 9 && facts[:os]['name'] == 'Debian')
if (facts[:os]['release']['major'].to_i < 18 && facts[:os]['name'] == 'Ubuntu')
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will drop the Ubuntu 16 code in another PR

Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manifests look good, but should we also clean up the tests?

describe 'shibboleth parameters', if: (os[:family] == 'debian' && os[:release] != '7') do
# Debian 7 is too old for ShibCompatValidUser

(facts[:os]['release']['major'].to_i >= 9 && facts[:os]['name'] == 'Debian') ||

And since I'm too lazy to link directly:

manifests/mod/md.pp:# @note Unsupported platforms: CentOS: 6, 7; Debian: 8, 9; OracleLinux: all; RedHat: 6, 7; Scientific: all; SLES: all; Ubuntu: 14, 16, 18
manifests/mod/shib.pp:# @note Unsupported platforms: RedHat: all; CentOS: all; Scientific: all; SLES: all; Debian: 7, 8; Ubuntu: all; OracleLinux: all
manifests/mod/apreq2.pp:# @note Unsupported platforms: CentOS: all; Debian: 8; OracleLinux: all; RedHat: all; Scientific: all; SLES: all; Ubuntu: all

@bastelfreak bastelfreak changed the title Drop EoL Debian 9 code Drop EoL Debian 9 and older code Oct 10, 2023
Copy link
Collaborator

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor note, otherwise 馃憤

@@ -1221,7 +1221,7 @@ class { 'apache': }
end
end

describe 'shibboleth parameters', if: (os[:family] == 'debian' && os[:release] != '7') do
describe 'shibboleth parameters', if: (os[:family] == 'debian') do
# Debian 7 is too old for ShibCompatValidUser
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Debian 7 is too old for ShibCompatValidUser

Debian 9 was already removed from metadata.json and isn't supported
anymore. This PR drops some code leftovers.
@bastelfreak bastelfreak merged commit 8e1759d into puppetlabs:main Oct 10, 2023
5 checks passed
@bastelfreak bastelfreak deleted the eol branch October 10, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants