File tree Expand file tree Collapse file tree 5 files changed +5
-18
lines changed Expand file tree Collapse file tree 5 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 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' ]
Original file line number Diff line number Diff line change 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
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 }
Original file line number Diff line number Diff line change 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 ]
7472 " 9"
7573 ]
7674 },
77- {
78- "operatingsystem" : " Scientific" ,
79- "operatingsystemrelease" : [
80- " 7"
81- ]
82- },
8375 {
8476 "operatingsystem" : " Fedora" ,
8577 "operatingsystemrelease" : [
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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 ] )
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 ( [
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 ( [
You can’t perform that action at this time.
0 commit comments