Giter VIP home page Giter VIP logo

Comments (3)

granquet avatar granquet commented on June 28, 2024

this seems to be a working fix for me:

diff --git a/lib/facter/selinux_python_command.rb b/lib/facter/selinux_python_command.rb
index 9b28c5b..fdfef04 100644
--- a/lib/facter/selinux_python_command.rb
+++ b/lib/facter/selinux_python_command.rb
@@ -4,7 +4,7 @@ Facter.add(:selinux_python_command) do
     if File.exist? '/usr/libexec/platform-python'
       # RHEL 8 / CentOS 8
       '/usr/libexec/platform-python'
-    elsif Facter::Core::Execution.execute('rpm -q python3-libsemanage') !~ %r{not installed}
+    elsif Facter::Core::Execution.execute('rpm -q python3-libsemanage policycoreutils-python-utils') !~ %r{not installed}
       'python3'
     else
       # This might be python 2 or 3. Keeping it at 'python' matches the module

any opinions? shall I create a PR?

from puppet-selinux.

kenyon avatar kenyon commented on June 28, 2024

@granquet are you setting selinux::manage_package: false? Otherwise, by default, policycoreutils-python-utils is installed by this module.

from puppet-selinux.

granquet avatar granquet commented on June 28, 2024

you are right, I should have looked a bit harder at the code in selinux_package_spec.rb

I'm actually using puppet-selinux through voxpupuli/puppet-squid ... which, after a quick glance, do not seem to do anything funky either (at least I'm sure no one is touching selinux:manage_package, not me, not voxpupuli/puppet-squid).

the good news is that I'm now unable to reproduce. not sure what went wrong in the first place. probably something on my setup.
I'll re-open if I see this issue coming back.

thx for your input,
Much appreciated :)

from puppet-selinux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.