I just grabbed puppet 2.6, and I''m wondering if there''s a way to install it to an alternative root location. The docs at http://docs.puppetlabs.com/guides/installation.html talk about how to set an alternate binary path etc, but nothing about specifying an alternative root location for all of it. I know this is probably a ruby question. I want to be able to wrap this in an rpmbuild process, which means specifying a different root install location, you know, for those that have to install this on a production system. Doug. -- 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, 20 Jul 2010, Douglas Garstang wrote:> I just grabbed puppet 2.6, and I''m wondering if there''s a way to > install it to an alternative root location.To install to a different root: ruby ./install.rb --destdir=/tmp/altroot This means that things that belong in /usr/local/lib at run time will be placed in /tmp/altroot/usr/local/lib at install time. --apb (Alan Barrett) -- 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.
Douglas Garstang wrote:> I just grabbed puppet 2.6, and I''m wondering if there''s a way to > install it to an alternative root location. The docs at > http://docs.puppetlabs.com/guides/installation.html talk about how to > set an alternate binary path etc, but nothing about specifying an > alternative root location for all of it. I know this is probably a > ruby question. > > I want to be able to wrap this in an rpmbuild process, which means > specifying a different root install location, you know, for those that > have to install this on a production system.Why not take a look at the existing spec file included in the puppet package, since we do just that? The parameter you''re looking for is --destdir. The spec I am referring to is conf/redhat/puppet.spec. Or, for one that is updated for 2.6.0 (very minor changes versus what is in the tarball), see: http://tmz.fedorapeople.org/repo/puppet/epel/5/SRPMS/puppet-2.6.0-0.7.el5.src.rpm -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Start every day with a smile and get it over with. -- W.C. Fields
Hey, I never knew there was a spec file distributed with Puppet. Thanks for the tip. What a time saver! -Tom Thomas A. McGonagle tom@dataero.com Google Voice: 617-229-5185 On Tue, Jul 20, 2010 at 2:04 PM, Todd Zullinger <tmz@pobox.com> wrote:> Douglas Garstang wrote: >> I just grabbed puppet 2.6, and I''m wondering if there''s a way to >> install it to an alternative root location. The docs at >> http://docs.puppetlabs.com/guides/installation.html talk about how to >> set an alternate binary path etc, but nothing about specifying an >> alternative root location for all of it. I know this is probably a >> ruby question. >> >> I want to be able to wrap this in an rpmbuild process, which means >> specifying a different root install location, you know, for those that >> have to install this on a production system. > > Why not take a look at the existing spec file included in the puppet > package, since we do just that? > > The parameter you''re looking for is --destdir. The spec I am > referring to is conf/redhat/puppet.spec. > > Or, for one that is updated for 2.6.0 (very minor changes versus what > is in the tarball), see: > > http://tmz.fedorapeople.org/repo/puppet/epel/5/SRPMS/puppet-2.6.0-0.7.el5.src.rpm > > -- > Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Start every day with a smile and get it over with. > -- W.C. Fields > >-- 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.