-
Notifications
You must be signed in to change notification settings - Fork 325
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
drop sys-v leftovers; assume systemctl is available for unknown platforms #1868
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,9 +82,7 @@ def to_s | |
let(:ssh_command) { "echo 'PermitUserEnvironment yes' | cat - /etc/ssh/sshd_config > #{directory}/sshd_config.permit" } | ||
let(:ssh_move) { "mv #{directory}/sshd_config.permit /etc/ssh/sshd_config" } | ||
|
||
platforms = PlatformHelpers::SYSTEMDPLATFORMS + PlatformHelpers::DEBIANPLATFORMS + PlatformHelpers::SYSTEMVPLATFORMS | ||
|
||
platforms.each do |platform| | ||
PlatformHelpers::SYSTEMDPLATFORMS.each do |platform| | ||
it "calls the correct commands for #{platform}" do | ||
opts['platform'] = platform | ||
expect(instance).to receive(:exec).twice | ||
|
@@ -114,31 +112,6 @@ def to_s | |
expect { instance.ssh_service_restart }.not_to raise_error | ||
end | ||
end | ||
|
||
PlatformHelpers::DEBIANPLATFORMS.each do |platform| | ||
it "calls the correct command for #{platform}" do | ||
opts['platform'] = platform | ||
expect(instance).to receive(:exec) | ||
expect(Beaker::Command).to receive(:new).with("service ssh restart") | ||
expect { instance.ssh_service_restart }.not_to raise_error | ||
end | ||
end | ||
|
||
PlatformHelpers::SYSTEMVPLATFORMS.each do |platform| | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would have been nice to keep this for EL6. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @joshcooper do you still rely on it? Vox Pupuli doesn't support EL6 anymore and I suspect you won't update to beaker 6 soonish and drop EL6 from your pipelines anyways? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We special cased it in the code. Either we should have dropped it or implemented tests. We kept it in at @joshcooper's request so I'd like to test it |
||
it "calls the correct command for #{platform}" do | ||
opts['platform'] = "#{platform}-arch" | ||
expect(instance).to receive(:exec) | ||
expect(Beaker::Command).to receive(:new).with("/sbin/service sshd restart") | ||
expect { instance.ssh_service_restart }.not_to raise_error | ||
end | ||
end | ||
|
||
it 'raises an error on unsupported platforms' do | ||
opts['platform'] = 'notarealthing02-parts-arch' | ||
expect do | ||
instance.ssh_service_restart | ||
end.to raise_error(ArgumentError, /#{opts['platform']}/) | ||
end | ||
end | ||
|
||
describe '#prepend_commands' do | ||
|
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 @joshcooper wanted to say that SLES 11 still hit this code. IMHO we should treat it like EL 6: special case it and less SLES 12+ fall through to systemd.
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.
Yes, I'm good with defaulting to systemd and special casing older platforms. Can you restore the ability to start services on SLES 11 using
/usr/sbin/rcsshd restart
?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.
#1883
but the question is the same as for EL6: How long will Puppet support those platforms? does it make sense for us to carry on with non-systemd support?
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.
RHEL 6 will have Extended LIfecycle Support until June 30, 2024 based on https://access.redhat.com/articles/4665701#6-how-can-i-continue-to-receive-software-maintenance-bug-and-security-fixes-and-full-technical-support-for-red-hat-enterprise-linux-6-6
But they could extend it, similar to how Oracle extended Solaris 10 until Jan 2027 https://blogs.oracle.com/solaris/post/new-end-date-of-extended-support-for-oracle-solaris-10-and-113
Also SLES 11 is something we will be supporting for some time.