Re: [Puppet Users] lspci via facter

2017-01-06 Thread Cam Mac
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(%

Re: [Puppet Users] PATH when using puppet apply. RVM buggered.

2017-01-06 Thread Steve Button
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

Re: [Puppet Users] lspci via facter

2017-01-06 Thread Cam Mac
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

Re: [Puppet Users] PATH when using puppet apply. RVM buggered.

2017-01-06 Thread Lowe Schmidt
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

[Puppet Users] PATH when using puppet apply. RVM buggered.

2017-01-06 Thread Steve Button
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