On Friday, September 21, 2012 1:14:56 AM UTC-5, jdehnert wrote:
>
> I'm setting up a pair of VM's to do some puppet testing on, and I am 
> trying to figure out how to install puppet without having the the system 
> also install ruby.
>
> I already have ruby installed through RVM, and I'd like to get puppet to 
> use that ruby.
>
> For the record, I'm using CentOS 6.3 as the OS for the 2 VM's.  I have the 
> puppet labs repo installed so I'm getting the latest version of puppet 
> straight from puppet labs.
> rvm version 1.15.9 is installed and I have ruby 1.9.2-p320 installed 
> (system wide) and set to the default.  I also ran 'rvm system' so that ruby 
> is found at /usr/local/rvm/bin/ruby.
>
> Unfortunately every time I start 'yum install puppet-server puppet' yum 
> wants to install ruby because rvm doesn't tell yum that ruby is already 
> installed.
>
> Does anyone know how to work around this?  in particular does anyone know 
> how I can make puppet use the rvm ruby after I install everything?
>
>
You have a wrong concept: yum and rpm don't care whether any particular *
software* is installed, they care only about what *packages* (RPMs) are 
installed.  That's why they don't care about the Ruby you've installed via 
rvm.

As a system administration principle, I think it's a rather poor idea to 
install software other than via the system's native package management 
system.  Among other things, that means I have no use for rvm (or gem), and 
also that I build a fair number of packages myself.  If you ignore that 
principle, then you need to be aware that you thereby start down a slippery 
slope; in fact, you are beginning to discover that on your own.

So what can you do?  Here are some of your options:

1) Use the system's Ruby packages.

2) Build and install your own Ruby packages (you can probably find some 
source RPMs to adapt)

3) Download the Puppet source and install it manually


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/CMBrtLtcYOUJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to