Skip to content

Commit 3c8dfa9

Browse files
bastelfreakekohl
authored andcommitted
Drop EL7 support
1 parent ed5d6b4 commit 3c8dfa9

File tree

5 files changed

+5
-18
lines changed

5 files changed

+5
-18
lines changed

manifests/params.pp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,6 @@
300300
$agent_restart_command = "/usr/sbin/service ${service_name} reload"
301301
$unavailable_runmodes = ['systemd.timer']
302302
}
303-
'RedHat': {
304-
$agent_restart_command = "/sbin/service ${service_name} reload"
305-
$unavailable_runmodes = ['systemd.timer']
306-
}
307303
'Windows': {
308304
$agent_restart_command = undef
309305
$unavailable_runmodes = ['cron', 'systemd.timer']

manifests/server/puppetserver.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
Optional[Integer[1]] $max_open_files = $puppet::server::max_open_files,
146146
Optional[Stdlib::Absolutepath] $versioned_code_id = $puppet::server::versioned_code_id,
147147
Optional[Stdlib::Absolutepath] $versioned_code_content = $puppet::server::versioned_code_content,
148-
Boolean $disable_fips = $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] != '7',
148+
Boolean $disable_fips = $facts['os']['family'] == 'RedHat',
149149
Array[String[1]] $jolokia_metrics_allowlist = $puppet::server::jolokia_metrics_allowlist,
150150
) {
151151
include puppet::server
@@ -172,7 +172,6 @@
172172
'RedHat': {
173173
$facts['os']['release']['major'] ? {
174174
/^([89])$/ => '/usr/lib/jvm/jre-17/bin/java',
175-
'7' => '/usr/lib/jvm/jre-11/bin/java',
176175
default => '/usr/bin/java'
177176
}
178177
}

metadata.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,13 @@
4242
{
4343
"operatingsystem": "RedHat",
4444
"operatingsystemrelease": [
45-
"7",
4645
"8",
4746
"9"
4847
]
4948
},
5049
{
5150
"operatingsystem": "CentOS",
5251
"operatingsystemrelease": [
53-
"7",
5452
"8",
5553
"9"
5654
]
@@ -74,12 +72,6 @@
7472
"9"
7573
]
7674
},
77-
{
78-
"operatingsystem": "Scientific",
79-
"operatingsystemrelease": [
80-
"7"
81-
]
82-
},
8375
{
8476
"operatingsystem": "Fedora",
8577
"operatingsystemrelease": [

spec/acceptance/puppetserver_latest_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class { 'puppet':
2525
end
2626
end
2727

28-
if ENV['BEAKER_PUPPET_COLLECTION'] != 'puppet7' && fact('os.family') == 'RedHat' && ['8', '9'].include?(fact('os.release.major'))
28+
if ENV['BEAKER_PUPPET_COLLECTION'] != 'puppet7' && fact('os.family') == 'RedHat'
2929
describe 'JRE version' do
3030
it { expect(package('java-17-openjdk-headless')).to be_installed }
3131
it { expect(package('java-11-openjdk-headless')).not_to be_installed }

spec/classes/puppet_server_puppetserver_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
.with_incl('/etc/default/puppetserver')
5656
.with_lens('Shellvars.lns')
5757
}
58-
if facts[:os]['family'] == 'RedHat' and facts[:os]['release']['major'] != '7'
58+
if facts[:os]['family'] == 'RedHat'
5959
it {
6060
should contain_augeas('puppet::server::puppetserver::jvm')
6161
.with_changes(['set JAVA_ARGS \'"-Xms2G -Xmx2G -Dcom.redhat.fips=false"\'', java_bin])
@@ -385,7 +385,7 @@
385385
.with_changes(['set puppetserver_java_opts \'"-Xms2G -Xmx2G -XX:foo=bar -XX:bar=foo"\''])
386386
.with_context('/files/etc/rc.conf')
387387
}
388-
elsif facts[:os]['family'] == 'RedHat' and facts[:os]['release']['major'] != '7'
388+
elsif facts[:os]['family'] == 'RedHat'
389389
it {
390390
should contain_augeas('puppet::server::puppetserver::jvm')
391391
.with_changes([
@@ -412,7 +412,7 @@
412412

413413
describe 'with cli_args parameter', unless: facts[:osfamily] == 'FreeBSD' do
414414
let(:params) { super().merge(server_jvm_cli_args: '-Djava.io.tmpdir=/var/puppettmp') }
415-
if facts[:os]['family'] == 'RedHat' and facts[:os]['release']['major'] != '7'
415+
if facts[:os]['family'] == 'RedHat'
416416
it {
417417
should contain_augeas('puppet::server::puppetserver::jvm')
418418
.with_changes([

0 commit comments

Comments
 (0)