Git Product home page Git Product logo

Comments (11)

BogdanIrimie avatar BogdanIrimie commented on June 26, 2024 2

@ekohl thanks for the info, in the next release of Facter 4 (probably tomorrow) this will be fixed. Facter::Core::Execution.execute will no longer throw exception and will log a message if it failed to execute command.

from puppet-selinux.

ekohl avatar ekohl commented on June 26, 2024 1

Note that this is in CI, which is always a bit different. I suspect the RH facts are loaded on an Ubuntu machine. That might mess up things.

from puppet-selinux.

ekohl avatar ekohl commented on June 26, 2024

Looks like this was also an issue in early Facter 2: https://tickets.puppetlabs.com/browse/FACT-409

from puppet-selinux.

alexjfisher avatar alexjfisher commented on June 26, 2024

ping @IrimieBogdan

from puppet-selinux.

blackknight36 avatar blackknight36 commented on June 26, 2024

Are you certain that the confine statement is working? Seems like the exec statement shouldn't be evaluated at all on non-RedHat nodes although you would also run into issues on a RedHat based OS where rpm is not available.

from puppet-selinux.

ekohl avatar ekohl commented on June 26, 2024

Great to hear. I'll revert theforeman/puppet-pulpcore@011f84b to verify it's been fixed.

from puppet-selinux.

BogdanIrimie avatar BogdanIrimie commented on June 26, 2024

@ekohl We have identified the problem, when running Facter 4 in a gem context, the exit code should be 0, even if there were errors. There is an experimental fix, but it will not get in today's release. You can expect the fix to get in early next week.

from puppet-selinux.

ekohl avatar ekohl commented on June 26, 2024

Thanks for the update! theforeman/puppet-pulpcore#83 should test that branch.

from puppet-selinux.

ekohl avatar ekohl commented on June 26, 2024

It looks like that passes, but still outputs the error. Now that makes me wonder: were custom facts always executed in CI?

from puppet-selinux.

BogdanIrimie avatar BogdanIrimie commented on June 26, 2024

@ekohl a new release of Facter 4 is out https://rubygems.org/gems/facter/versions/4.0.13 Please give it a try.

from puppet-selinux.

ekohl avatar ekohl commented on June 26, 2024

Closing due to the new facter version.

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.