Are there any good guides out there to using Puppet agents with a dedicated, separate ruby install? Our apps are all Ruby based and require different versions than Puppet. Installing the agent from a package will override our ruby installs. -- 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/-/YAb364xKLU8J. 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.
Michael Stahnke
2012-Dec-12 21:19 UTC
Re: [Puppet Users] Puppet with dedicated ruby install
On Wed, Dec 12, 2012 at 12:54 PM, Alexander Philipp <alex.philipp2@gmail.com> wrote:> Are there any good guides out there to using Puppet agents with a dedicated, > separate ruby install? Our apps are all Ruby based and require different > versions than Puppet. Installing the agent from a package will override our > ruby installs.Just a note that this is one of the features of Puppet Enterprise. It is setup with it''s own Ruby. You can certainly do this too. I am not aware of guides though.> > -- > 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/-/YAb364xKLU8J. > 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.
Matthias Viehweger
2012-Dec-12 22:59 UTC
Re: [Puppet Users] Puppet with dedicated ruby install
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Alexander! On Wed, Dec 12, 2012 at 12:54:56PM -0800, Alexander Philipp wrote:> Are there any good guides out there to using Puppet agents with a > dedicated, separate ruby install? Our apps are all Ruby based and require > different versions than Puppet. Installing the agent from a package will > override our ruby installs.We do this the other way around. Puppet runs on system ruby (Ubuntu''s Ruby 1.8) while the apps have their dedicated rvm-setup. Cheers, Matthias Viehweger - -- Serververwaltung und Softwareentwicklung https://www.heute-kaufen.de Prinzessinnenstraße 20 - 10969 Berlin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJQyQxhAAoJENF9b50VgROLtFAIAJP6X0F+VN3iSBYWoQrnE+zb hwq1wK+Jrj3+ZY75dWGOM7IoAG5e6HGSiNdAH2J3Xu2SmOvWl183WTb4gsfNFL+Y w0p+o/imkWzJJ1G+rjvUAAVI85YeEVgXDOmd5GQGND37Wt/97v0ou7mFf/rb1yC7 gQX1msuz3Py/p1QOU1QgL+X8UGVsc4FhOFtd6+zZGGodsbYq+AWukY4QKkYP+3t2 uJOELYS9ObR1T4WeliW2bDd/1jb/80lFOWZdtErZL6gEd3x63W/DPBjV/DpP949c CY1Rjoy84Uqq4PVb3R3xT73qYxLW2dtgZCmZlA+C2rbJkD624XV8CErMwRum4ic=2aA9 -----END PGP SIGNATURE----- -- 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.
I''ve done this using gems. I build Ruby from source (I use --prefix but not sure if it''s required) and then use the new gem executable to install Puppet as gem. Works great for me if you can use gems BTW, I did this because we use CentOS 5 and I wanted to use Ruby 1.9.x + Puppet 3.x and had too much trouble trying every other method. I also go one more step and build an RPM out of the new Ruby including it''s gems. and distribute that to clients as a ruby+puppet package. I asked a similar question before: https://groups.google.com/d/topic/puppet-users/jRE97JXZqgQ/discussion I couldn''t figure out how to make Puppet use my custom Ruby and so tried out this gem method. I''d love to hear if anyone else figures out another method. On Wednesday, December 12, 2012 12:54:56 PM UTC-8, Alexander Philipp wrote:> > Are there any good guides out there to using Puppet agents with a > dedicated, separate ruby install? Our apps are all Ruby based and require > different versions than Puppet. Installing the agent from a package will > override our ruby installs.-- 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/-/SADZmI_ZingJ. 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.
Hi There, We take this approach as well with our platform to ensure that puppet upgrades don''t affect any applications that may be using the OS version of Ruby. Disclaimer: I don''t actually love our approach to packaging Ruby and am aware of its flaws, however it has proved to be OK for the time being until I can fully review it. (ie, should I be moving to an RPM per gem as per EPEL and Puppet Enterprise do, etc , etc ?) Quick overview of what we do: 1. Build your Ruby from source, using a unique location for its prefix ie, /opt/ruby-1.8.7/ 2. Build and install the rubygems framework into this install 3. Using gems, install all your required gems into the ruby installation, don''t forget that a number of them require additional libraries and packages to function, ie Augeas 4. Package this software into an RPM - Dont forget to add requires for the additional dependencies you need , as well as document all the gems you added and what they are for so you can repeat this process on other platforms, ie RHEL4/5/6 5. Grab the puppet and facter source - These ship with SPEC files to aid in building them, you just need to modify the ruby path they reference, and all should be OK. Don''t forget to add the dependencies for this package against your own ruby packages so they install nice via YUM or similar. 6. Test lots of times, then deploy. Maintainence wise, if we need to add / change functionality, we install the package on a clean dev host, make the changes and re-package into a new revision of that package. We repeat this procedure for all the other OS versions of ruby so they are identical feature wise. I have found the "rubygems_snapshot" gem/tool is quite useful for this kind of task. Like I said, our approach is not perfect, but it works for now until I can clean it up and hopefully automate the lot with Jenkins. I hope this is of some use. Cheers, K On Wednesday, December 12, 2012 8:54:56 PM UTC, Alexander Philipp wrote:> > Are there any good guides out there to using Puppet agents with a > dedicated, separate ruby install? Our apps are all Ruby based and require > different versions than Puppet. Installing the agent from a package will > override our ruby installs.-- 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/-/gGsL2feZ90oJ. 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 Wednesday, December 12, 2012 2:54:56 PM UTC-6, Alexander Philipp wrote:> > Are there any good guides out there to using Puppet agents with a > dedicated, separate ruby install? Our apps are all Ruby based and require > different versions than Puppet. Installing the agent from a package will > override our ruby installs.Have you considered a dedicated puppetmaster instead? Especially if your apps are outward-facing, it would be good practice anyway to separate them as much as possible from your infrastructure services, such as Puppet. 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/-/CNT93IVh2UMJ. 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.
Possibly Parallel Threads
- could not retrieve information from environment
- Error 400 on SERVER: Could not write /var/lib/puppet/ssl/ca/requests/node13.pem
- [windows server 2008 r2] puppet errors in 3.3.0 on exchange database servers
- Puppetting the puppetmaster problems
- Configure firewall with Puppet