Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions manifests/server/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
$package_name = $facts['os']['release']['major'] ? {
'5' => 'policycoreutils',
'6' => 'policycoreutils-python',
'7' => 'policycoreutils-python',
default => 'policycoreutils-python-utils',
}
}
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/classes/server/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
end

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

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

it 'has the correct systemd-override file' do
Expand Down