Skip to content

Commit d9d7926

Browse files
committed
Drop EL7 support
1 parent cee76d9 commit d9d7926

File tree

7 files changed

+16
-39
lines changed

7 files changed

+16
-39
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Part of the Foreman installer: <https://github.com/theforeman/foreman-installer>
1212

1313
| Module version | Proxy versions | Notes |
1414
|----------------|----------------|-----------------------------------------------------|
15+
| 23.x | 3.4 and newer | See compatibility notes in its README for 3.1-3.3 |
1516
| 22.x | 3.3 and newer | See compatibility notes in its README for 3.1-3.3 |
1617
| 21.x | 3.1 and 3.2 | |
1718
| 20.x | 3.1 and 3.2 | See compatibility notes in its README for 2.3-3.0 |
@@ -26,6 +27,7 @@ Part of the Foreman installer: <https://github.com/theforeman/foreman-installer>
2627
| 2.x | 1.5 - 1.10 | |
2728
| 1.x | 1.4 and older | |
2829

30+
* 23.x dropped EL7 support. 3.1 and newer work on EL8.
2931
* 22.x renamed foreman_proxy::plugin::remote_execution::ssh to foreman_proxy::plugin::remote_execution::script as the feature within the plugin has changed from SSH to Script.
3032
* 20.x started to register as a Smart Proxy host. This requires Foreman 3.1. When using an older Foreman, set `$register_in_foreman` to false. This does require manual registration then.
3133
* 18.x switched to running `smart_proxy_dynflow` as part of `foreman-proxy` service by default. On EL* distributions and Foreman < 2.5, `foreman_proxy::plugin::dynflow::external_core` needs to be explicitly set to `true`.

manifests/params.pp

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55

66
case $facts['os']['family'] {
77
'RedHat': {
8-
if versioncmp($facts['os']['release']['major'], '7') <= 0 {
9-
$ruby_package_prefix = 'tfm-rubygem-'
10-
} else {
11-
$ruby_package_prefix = 'rubygem-'
12-
}
8+
$ruby_package_prefix = 'rubygem-'
139
$plugin_prefix = "${ruby_package_prefix}smart_proxy_"
1410

1511
$dir = pick($foreman_proxy::globals::dir, '/usr/share/foreman-proxy')
@@ -25,26 +21,16 @@
2521
$keyfile = '/etc/rndc.key'
2622
$nsupdate = 'bind-utils'
2723

28-
if versioncmp($facts['os']['release']['major'], '7') <= 0 {
29-
$_tftp_syslinux_filenames = [
30-
'/usr/share/syslinux/chain.c32',
31-
'/usr/share/syslinux/mboot.c32',
32-
'/usr/share/syslinux/menu.c32',
33-
'/usr/share/syslinux/memdisk',
34-
'/usr/share/syslinux/pxelinux.0',
35-
]
36-
} else {
37-
$_tftp_syslinux_filenames = [
38-
'/usr/share/syslinux/chain.c32',
39-
'/usr/share/syslinux/ldlinux.c32',
40-
'/usr/share/syslinux/libcom32.c32',
41-
'/usr/share/syslinux/libutil.c32',
42-
'/usr/share/syslinux/mboot.c32',
43-
'/usr/share/syslinux/menu.c32',
44-
'/usr/share/syslinux/memdisk',
45-
'/usr/share/syslinux/pxelinux.0',
46-
]
47-
}
24+
$_tftp_syslinux_filenames = [
25+
'/usr/share/syslinux/chain.c32',
26+
'/usr/share/syslinux/ldlinux.c32',
27+
'/usr/share/syslinux/libcom32.c32',
28+
'/usr/share/syslinux/libutil.c32',
29+
'/usr/share/syslinux/mboot.c32',
30+
'/usr/share/syslinux/menu.c32',
31+
'/usr/share/syslinux/memdisk',
32+
'/usr/share/syslinux/pxelinux.0',
33+
]
4834
}
4935
'Debian': {
5036
$ruby_package_prefix = 'ruby-'

metadata.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,15 @@
6161
{
6262
"operatingsystem": "RedHat",
6363
"operatingsystemrelease": [
64-
"7",
6564
"8"
6665
]
6766
},
6867
{
6968
"operatingsystem": "CentOS",
7069
"operatingsystemrelease": [
71-
"7",
7270
"8"
7371
]
7472
},
75-
{
76-
"operatingsystem": "Scientific",
77-
"operatingsystemrelease": [
78-
"7"
79-
]
80-
},
8173
{
8274
"operatingsystem": "Debian",
8375
"operatingsystemrelease": [

spec/acceptance/journald_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
it { is_expected.to be_installed }
1212
end
1313

14-
# Logging to the journal is broken on Docker with EL7
15-
describe command('journalctl -u foreman-proxy'), unless: default[:hypervisor] == 'docker' && os[:family] == 'redhat' && os[:release] =~ /^7\./ do
14+
describe command('journalctl -u foreman-proxy') do
1615
its(:stdout) { is_expected.to match(%r{WEBrick::HTTPServer#start}) }
1716
end
1817
end

spec/defines/foreman_proxy_plugin_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
let(:package) do
1212
if facts[:osfamily] == 'Debian'
1313
'ruby-smart-proxy-myplugin'
14-
elsif facts[:osfamily] == 'RedHat' && facts[:operatingsystemmajrelease] == '7'
15-
'tfm-rubygem-smart_proxy_myplugin'
1614
else
1715
'rubygem-smart_proxy_myplugin'
1816
end

spec/spec_helper_acceptance.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'voxpupuli/acceptance/spec_helper_acceptance'
22

3-
ENV['BEAKER_setfile'] ||= 'centos7-64{hostname=centos7-64.example.com}'
3+
ENV['BEAKER_setfile'] ||= 'centos7-64{hostname=centos8-64.example.com}'
44

55
configure_beaker(modules: :fixtures) do |host|
66
if fact_on(host, 'os.family') == 'RedHat'

spec/support/plugin.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ def on_plugin_os
22
supported_os = [
33
{
44
'operatingsystem' => 'RedHat',
5-
'operatingsystemrelease' => ['7'],
5+
'operatingsystemrelease' => ['8'],
66
},
77
{
88
'operatingsystem' => 'Debian',

0 commit comments

Comments
 (0)