Is it possible to tell Puppet (and Facter for that matter) to use a custom Ruby that exists alongside the Ruby 1.8.7 that comes with CentOS 5 without converting the entire host to only use the custom version? I''m in an environment where we''re stuck on CentOS 5 for some time and it''s ancient Ruby. We do though have a custom packaging of Ruby 1.9 installed on all machines with separate binaries, i.e. /usr/bin/my_ruby, /usr/bin/my_irb that we use when we need Ruby. I''m looking for some config or startup option that says where to find Ruby. So far I don''t see anything in the init scripts or config options. Solutions such as linking /usr/bin/ruby to /usr/bin/my_ruby are not an option but rebuilding an RPM is. Thanks! -- 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/-/MdQ1apUpOxQJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
BTW, I want to do this so that I can upgrade to Puppet 3 On Tuesday, October 16, 2012 12:15:30 PM UTC-7, Jamie wrote:> > Is it possible to tell Puppet (and Facter for that matter) to use a > custom Ruby that exists alongside the Ruby 1.8.7 that comes with CentOS 5 > without converting the entire host to only use the custom version? > > I''m in an environment where we''re stuck on CentOS 5 for some time and it''s > ancient Ruby. We do though have a custom packaging of Ruby 1.9 installed > on all machines with separate binaries, i.e. /usr/bin/my_ruby, > /usr/bin/my_irb that we use when we need Ruby. > > > I''m looking for some config or startup option that says where to find > Ruby. So far I don''t see anything in the init scripts or config options. > > > Solutions such as linking /usr/bin/ruby to /usr/bin/my_ruby are not an > option but rebuilding an RPM is. > > Thanks! >-- 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/-/SeIFJGKJilsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
You can rebuild puppet and/or facter to use the ruby you have available. It should only require modifying a couple of lines in the spec file. You''d need to modify the ruby dependencies and the rubylib. On Tue, Oct 16, 2012 at 12:15 PM, Jamie <gojamiegirl@gmail.com> wrote:> Is it possible to tell Puppet (and Facter for that matter) to use a custom > Ruby that exists alongside the Ruby 1.8.7 that comes with CentOS 5 without > converting the entire host to only use the custom version? > > I''m in an environment where we''re stuck on CentOS 5 for some time and it''s > ancient Ruby. We do though have a custom packaging of Ruby 1.9 installed on > all machines with separate binaries, i.e. /usr/bin/my_ruby, /usr/bin/my_irb > that we use when we need Ruby. > > > I''m looking for some config or startup option that says where to find Ruby. > So far I don''t see anything in the init scripts or config options. > > > Solutions such as linking /usr/bin/ruby to /usr/bin/my_ruby are not an > option but rebuilding an RPM is. > > Thanks! > > -- > 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/-/MdQ1apUpOxQJ. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en.-- Matthaus Owens Release Manager, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Awesome! I''ll try that, thank you. On Tuesday, October 16, 2012 1:27:21 PM UTC-7, Matthaus Litteken wrote:> > You can rebuild puppet and/or facter to use the ruby you have > available. It should only require modifying a couple of lines in the > spec file. You''d need to modify the ruby dependencies and the > rubylib. > > On Tue, Oct 16, 2012 at 12:15 PM, Jamie <gojam...@gmail.com <javascript:>> > wrote: > > Is it possible to tell Puppet (and Facter for that matter) to use a > custom > > Ruby that exists alongside the Ruby 1.8.7 that comes with CentOS 5 > without > > converting the entire host to only use the custom version? > > > > I''m in an environment where we''re stuck on CentOS 5 for some time and > it''s > > ancient Ruby. We do though have a custom packaging of Ruby 1.9 > installed on > > all machines with separate binaries, i.e. /usr/bin/my_ruby, > /usr/bin/my_irb > > that we use when we need Ruby. > > > > > > I''m looking for some config or startup option that says where to find > Ruby. > > So far I don''t see anything in the init scripts or config options. > > > > > > Solutions such as linking /usr/bin/ruby to /usr/bin/my_ruby are not an > > option but rebuilding an RPM is. > > > > Thanks! > > > > -- > > 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/-/MdQ1apUpOxQJ. > > To post to this group, send email to puppet...@googlegroups.com<javascript:>. > > > To unsubscribe from this group, send email to > > puppet-users...@googlegroups.com <javascript:>. > > For more options, visit this group at > > http://groups.google.com/group/puppet-users?hl=en. > > > > -- > Matthaus Owens > Release Manager, Puppet Labs >-- 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/-/E1SHrHqtNCgJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Oct 16, 2012, at 12:15 PM, Jamie wrote:> Is it possible to tell Puppet (and Facter for that matter) to use a custom Ruby that exists alongside the Ruby 1.8.7 that comes with CentOS 5 without converting the entire host to only use the custom version? > > I''m in an environment where we''re stuck on CentOS 5 for some time and it''s ancient Ruby. We do though have a custom packaging of Ruby 1.9 installed on all machines with separate binaries, i.e. /usr/bin/my_ruby, /usr/bin/my_irb that we use when we need Ruby. > > > I''m looking for some config or startup option that says where to find Ruby. So far I don''t see anything in the init scripts or config options. > > > Solutions such as linking /usr/bin/ruby to /usr/bin/my_ruby are not an option but rebuilding an RPM is.---- You can use solutions like rvm or rbenv to have more than one version of ruby installed and just tweak the startup scripts to use the non-packaged ruby form rvm or rbenv instead. I am using rbenv with ubuntu and have been working to abstract the client systems to be happy with whatever version of ruby we employ as we are upgrading some of our test servers to 1.9.3. The puppet server should probably be running on something newer than CentOS 5.x (a vm perhaps?) Craig -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 10/17/2012 01:02 AM, Craig White wrote:> The puppet server should probably be running on something newer than CentOS 5.x (a vm perhaps?)Can you run 3.0 server with 2.7 clients? -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Oct 16, 2012 at 4:37 PM, Jakov Sosic <jsosic@srce.hr> wrote:> On 10/17/2012 01:02 AM, Craig White wrote: >> >> The puppet server should probably be running on something newer than >> CentOS 5.x (a vm perhaps?) > > > Can you run 3.0 server with 2.7 clients?Yes.> > > > -- > Jakov Sosic > www.srce.unizg.hr > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Tue, Oct 16, 2012 at 4:50 PM, Michael Stahnke <stahnma@puppetlabs.com> wrote:> On Tue, Oct 16, 2012 at 4:37 PM, Jakov Sosic <jsosic@srce.hr> wrote: >> On 10/17/2012 01:02 AM, Craig White wrote: >>> >>> The puppet server should probably be running on something newer than >>> CentOS 5.x (a vm perhaps?) >> >> >> Can you run 3.0 server with 2.7 clients? > Yes.Also http://docs.puppetlabs.com/guides/upgrading.html#always-upgrade-the-puppet-master-first Josh -- Josh Cooper Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.