Skip to content

Commit 62f9d07

Browse files
Merge pull request #1212 from sheenaajay/rhel7defaults
(maint) updated defaults for rhel7 policycoreutils
2 parents 711a729 + b5bdb4c commit 62f9d07

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

manifests/server/config.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
$package_name = $facts['os']['release']['major'] ? {
129129
'5' => 'policycoreutils',
130130
'6' => 'policycoreutils-python',
131+
'7' => 'policycoreutils-python',
131132
default => 'policycoreutils-python-utils',
132133
}
133134
}

spec/unit/classes/server/config_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
end
2929

3030
it 'has SELinux port defined' do
31-
is_expected.to contain_package('policycoreutils-python-utils') .with(ensure: 'present')
31+
is_expected.to contain_package('policycoreutils-python') .with(ensure: 'present')
3232

3333
is_expected.to contain_exec('/usr/sbin/semanage port -a -t postgresql_port_t -p tcp 5432')
3434
.with(unless: '/usr/sbin/semanage port -l | grep -qw 5432')
3535
.that_comes_before('Postgresql::Server::Config_entry[port]')
36-
.that_requires('Package[policycoreutils-python-utils]')
36+
.that_requires('Package[policycoreutils-python]')
3737
end
3838

3939
it 'has the correct systemd-override file' do

0 commit comments

Comments
 (0)