From b5bdb4c8ba565e82705717d41d33b150ce3032a3 Mon Sep 17 00:00:00 2001 From: sheena Date: Wed, 25 Nov 2020 09:10:11 +0000 Subject: [PATCH] (bugfix) updated defaults for rhel7 policycoreutils --- manifests/server/config.pp | 1 + spec/unit/classes/server/config_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/server/config.pp b/manifests/server/config.pp index e97fca8f07..a661fbdf34 100644 --- a/manifests/server/config.pp +++ b/manifests/server/config.pp @@ -128,6 +128,7 @@ $package_name = $facts['os']['release']['major'] ? { '5' => 'policycoreutils', '6' => 'policycoreutils-python', + '7' => 'policycoreutils-python', default => 'policycoreutils-python-utils', } } diff --git a/spec/unit/classes/server/config_spec.rb b/spec/unit/classes/server/config_spec.rb index 65a848bf09..f297d9ffb5 100644 --- a/spec/unit/classes/server/config_spec.rb +++ b/spec/unit/classes/server/config_spec.rb @@ -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