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

custom facter facts is calling old powershell.exe #2777

Open
rismoney opened this issue Nov 2, 2024 · 2 comments
Open

custom facter facts is calling old powershell.exe #2777

rismoney opened this issue Nov 2, 2024 · 2 comments
Labels
enhancement New feature or enhancement

Comments

@rismoney
Copy link

rismoney commented Nov 2, 2024

My understanding is facter is not using the https://github.com/puppetlabs/ruby-pwsh gem.
It is not possible to control facters external fact execution using powershell vs pwsh. So what I am requesting, is the ability to possible control this, perhaps through facter.conf configuration. Also the benefits of using this gem, is that you drastically improve performance by avoiding instantiation of powershell processes.

@rismoney rismoney added the enhancement New feature or enhancement label Nov 2, 2024
@cthorn42
Copy link
Collaborator

@rismoney thank you for the enhancement, could you break things down a bit more on what you mean by the differences of execution between powershell and ruby-pwsh?

@rismoney
Copy link
Author

if you launch powershell via a fact, you can't control usage of pwsh or powershell (versions)

Also the gem usage prevents multiple instances of powershell, and you take advantage of runspaces automatically,

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

No branches or pull requests

2 participants