puppet 2.7.11 requires ruby = 1.8.5

395 views
Skip to first unread message

rjl

unread,
Mar 2, 2012, 9:39:37 PM3/2/12
to puppet...@googlegroups.com
I have compiled and installed ruby 1.9.3 on Centos 5

# ruby -v
     ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

Now I am trying to install puppet 2.7.11. However, it is requiring that ruby version 1.8.5-5.el5_4.8.

# yum install puppet
Installing:
 puppet                                       noarch                                  2.7.11-2.el5                                       lvlt-tools-updates                                  1.0 M
Installing for dependencies:
 ruby                                         x86_64                                  1.8.5-5.el5_4.8

Any idea why it is requiring that version as a dependency?

Thanks in advance

Michael Stahnke

unread,
Mar 2, 2012, 10:17:18 PM3/2/12
to puppet...@googlegroups.com
It actually require ruby(abi) = 1.8

This is likely only satisfied by Ruby 1.8.5 in your repositories.

This is the way the rpm package is currently built. This is in the
problem of changing, as 1.9.3 is now becoming the default in Fedora
17. I suspect a spec version very soon will have a this updated to
run with Ruby 1.9.

There are a couple of other 1.9 compatibility issues with packaging.
For example, ruby-shadow doesn't quite work with Ruby 1.9 and now
rubygem-ruby-shadow should be used.

Mike

> --
> 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/-/pJAfy-Frl2AJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

rjl

unread,
Mar 2, 2012, 10:43:27 PM3/2/12
to puppet...@googlegroups.com
Thanks Michael,
I have a working environment using ruby 1.8.5 (The Centos 5 default). However, I want to change my puppet framework to be database driven. For that, I  would like to use rails activerecord. Now the problem is that rails is not supported in 1.8.5.

Any suggestions would be greatly appreciated.

Craig White

unread,
Mar 2, 2012, 11:28:10 PM3/2/12
to puppet...@googlegroups.com

On Mar 2, 2012, at 3:43 PM, rjl wrote:

> Thanks Michael,
> I have a working environment using ruby 1.8.5 (The Centos 5 default). However, I want to change my puppet framework to be database driven. For that, I would like to use rails activerecord. Now the problem is that rails is not supported in 1.8.5.
>
> Any suggestions would be greatly appreciated.

----
you're on the right track but on CentOS 5, you pretty much should forget about using ruby/gems from rpm packages. Ruby 1.8.5 isn't going to get you anywhere with a Rails application.

Use gems...
gem install puppet
gem install rails

Craig

rjl

unread,
Mar 2, 2012, 11:58:33 PM3/2/12
to puppet...@googlegroups.com
I can only find the puppet gem. Isn't there a puppet-server gem? I have a working environment without rails. The following is installed on my puppet master:

puppet-2.6.7-1.el5
puppet-server-2.6.7-1.el5

And the following is installed on my clients:

puppet-2.6.7-1.el5

You mention only one gem. Is there not a server gem? Obviously I am very confused.

Russell Van Tassell

unread,
Mar 3, 2012, 12:19:59 AM3/3/12
to puppet...@googlegroups.com
The gem includes everything you will need... the (basic) difference is simply running "puppet agent" versus "puppet master" -- some packages just hide the simplicity (probably a legacy thing?).

Note: I do not believe things like the sysconfig, logrotate and startup scripts get installed by default with the gem (it's been a while since I've done a fresh/virgin install in an environment) ... but those should be easy enough to find. Many folks seem to run things out of cron, anyway...


--
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/-/LCusiYG84zoJ.

Craig White

unread,
Mar 5, 2012, 3:59:07 PM3/5/12
to puppet...@googlegroups.com

On Mar 2, 2012, at 5:19 PM, Russell Van Tassell wrote:

> The gem includes everything you will need... the (basic) difference is simply running "puppet agent" versus "puppet master" -- some packages just hide the simplicity (probably a legacy thing?).
>
> Note: I do not believe things like the sysconfig, logrotate and startup scripts get installed by default with the gem (it's been a while since I've done a fresh/virgin install in an environment) ... but those should be easy enough to find. Many folks seem to run things out of cron, anyway...

----
I think you will find the various bits in the gem/conf directory (init/sysconfig/logrotate/etc.)

Craig

Reply all
Reply to author
Forward
0 new messages