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] 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