Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure procps-ng is installed on Red Hat. #154

Closed
wants to merge 1 commit into from

Conversation

Tamerz
Copy link

@Tamerz Tamerz commented Sep 23, 2024

The module expects the ps utility to already be installed, but it may not be.

# puppet apply mymanifest.pp 
Notice: Compiled catalog for 933b1f81aa39 in environment production in 0.03 seconds
Notice: /Stage[main]/Tftp::Install/Package[tftp-server]/ensure: created
Notice: /Stage[main]/Tftp::Install/Package[syslinux]/ensure: created
Error: /Stage[main]/Tftp::Service/Service[tftp.socket]: Could not evaluate: Execution of 'ps -ef' returned 1: Error: Could not execute posix command: No such file or directory - ps
Error: /Stage[main]/Tftp::Service/Service[tftp.socket]: Failed to call refresh: Execution of 'ps -ef' returned 1: Error: Could not execute posix command: No such file or directory - ps
Error: /Stage[main]/Tftp::Service/Service[tftp.socket]: Execution of 'ps -ef' returned 1: Error: Could not execute posix command: No such file or directory - ps
Notice: Applied catalog in 46.46 seconds

This adds an optional_packages parameter to install and adds procps-ng to the RedHat.yaml Hiera data.

@evgeni
Copy link
Member

evgeni commented Sep 23, 2024

But… This module doesn't use ps anywhere. Is that a packaging bug in RHEL?

@Tamerz
Copy link
Author

Tamerz commented Sep 23, 2024

That is a good point. I tried on a different machine and purposely removed procps-ng and this module worked as expected. I'll remove this pull request since it seems to be something specific to machines I was testing on.

@Tamerz Tamerz closed this Sep 23, 2024
@evgeni
Copy link
Member

evgeni commented Sep 23, 2024

I've hit similar things in the past. A lot of packages in RHEL assume presence of base packages (as they are in the @base group), but don't declare a dependency on them. So a normal VM installation works fine, but in a container without base things fail or behave differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants