11
11
configure_type_defaults_on ( hosts )
12
12
install_ca_certs unless pe_install?
13
13
14
- UNSUPPORTED_PLATFORMS = [ 'AIX ' , 'windows' , 'Solaris ' ] . freeze
14
+ UNSUPPORTED_PLATFORMS = [ 'aix ' , 'windows' , 'solaris ' ] . freeze
15
15
16
16
install_bolt_on ( hosts ) unless pe_install?
17
17
install_module_on ( hosts )
@@ -78,7 +78,7 @@ def idempotent_apply(hosts, manifest, opts = {}, &block)
78
78
c . before :suite do
79
79
run_puppet_access_login ( user : 'admin' ) if pe_install? && ( Gem ::Version . new ( puppet_version ) >= Gem ::Version . new ( '5.0.0' ) )
80
80
# Set up selinux if appropriate.
81
- if fact ( 'osfamily' ) == 'RedHat ' && fact ( 'selinux' ) == 'true'
81
+ if os [ :family ] == 'redhat ' && fact ( 'selinux' ) == 'true'
82
82
pp = <<-EOS
83
83
if $::osfamily == 'RedHat' and $::selinux == 'true' {
84
84
$semanage_package = $::operatingsystemmajrelease ? {
@@ -99,9 +99,8 @@ def idempotent_apply(hosts, manifest, opts = {}, &block)
99
99
end
100
100
101
101
# net-tools required for netstat utility being used by be_listening
102
- if fact ( 'osfamily' ) == 'RedHat' && fact ( 'operatingsystemmajrelease' ) == '7' ||
103
- fact ( 'osfamily' ) == 'Debian' && ( fact ( 'operatingsystemmajrelease' ) == '9' ||
104
- fact ( 'operatingsystemmajrelease' ) == '18.04' )
102
+ if os [ :family ] == 'redhat' && os [ :release ] . start_with? ( '7' ) ||
103
+ os [ :family ] == 'debian' && os [ :release ] . start_with? ( '9' , '18.04' )
105
104
pp = <<-EOS
106
105
package { 'net-tools': ensure => installed }
107
106
EOS
0 commit comments