Update: I can get it to return all of the output of lspci, but can't filter
it for the string I'm looking for. Example:
setcode do
controllers = []
if Facter::Util::Resolution.which('lspci')
if Facter::Util::Resolution.which('grep')
output = Facter::Util::Resolution.exec(%
Hi,
We're not intentionally using rvm to run puppet. We have a RoR application,
and we currently want to ensure it runs the correct Ruby version using RVM.
For this purpose, we're using the maestrodev/rvm module from the forge.
Thanks for coming back so quickly.
Steve
On Friday, 6 January 20
Hi Garrett,
During a Puppet run, I can see it modifying the local copy of the
videocard.rb on the client, when I've modified it. It just doesn't set the
fact.
I'll try Facter::Util::Resolution and see if that gets any better results.
Thanks,
Cam
On Friday, 6 January 2017 01:59:42 UTC, Garre
Later versions of puppet comes with their own supported ruby included[0]
Any specific reason you are using rvm to run puppet?
[0]
"Starting with Puppet 4, puppet-agent packages do not rely on the OS’s Ruby
version, as it bundles its own Ruby environment. You can install
puppet-agent alongside any
Hi,
I'm using "sudo puppet apply" to get a bunch of puppet code to run for me,
but when it runs as root, I notice that the $PATH environment variable is
showing as :-
Notice: /Stage[main]/Main/Node[ubuntu-xenial]/Exec[/bin/echo
$PATH]/returns:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin