Brandon Evans
2009-Apr-15 00:29 UTC
[Puppet Users] How To: Puppet Setup on Redhat 8 using the puppet gem.
I got puppet installed and running on Redhat 8 today. I''m passing on
my
notes to the list to help out others that may want or need puppet
running on older Redhat servers.
This is pretty much a copy & paste from my own personal wiki so please
forgive any odd formating.
==== Puppet Setup on Redhat 8 ===Here''s a quick-n-dirty on how I got
puppet running on redhat 8. Please
don''t ask me why I needed it running on redhat 8. I will burst into
tears.
My object here was to get my redhat 8 servers managed by puppet
alongside the rest of my CentOS servers.
I decided to keep puppet separate from the rest of the system. This way
I don''t upset the systems chi.
I should point out that I know little about the world of ruby & its
supposed "gems".
In the End this setup works & that is what is all that matters to me.
=== Basic Overview == * Installing to /opt/puppet using the puppet gem
package.
* Download the latest openssl source from
http://www.openssl.org/source. I used openssl-0.9.8k.tar.gz
* extract openssl and install using
# ./config --prefix=/opt/puppet && make && make install
* Download and extract Ruby 1.8.x from
ftp://ftp.ruby-lang.org/pub/ruby/1.8. I used ruby-1.8.7-p72.tar.gz
* Change to the ruby-1.8.7-p72 directory and move the ext/openssl
directory out of the way.
# cd ruby-1.8.7-p72
# mv ext/openssl /tmp
* With the openssl extension out of the way you can now install
puppet like so
# ./configure --prefix=/opt/puppet && make && make install
* Now that ruby is installed move the openssl directory back into
./ext then compile the openssl module separately. This is important
because we will be building the openssl ruby module using our openssl
install located in /opt/puppet
# pwd
# /usr/local/src/puppet_setup/ruby-1.8.7-p72
# mv /tmp/openssl ./ext
# cd ./ext/openssl
# ../../ruby extconf.rb --with-openssl-include=/opt/puppet/include
--with-openssl-lib=/opt/puppet/lib
# LD_RUN_PATH=/opt/puppet/lib make
# make install
* Next we will install rubygems from
http://rubyforge.org/frs/?group_id=126. Here I used version
rubygems-1.3.1.tgz
* This is an easy install. Extract the rubygems tar then install
it using the newly installed version of ruby.
# cd rubygems-1.3.1
# /opt/puppet/bin/ruby setup.rb
* Almost done. Now download the latest stable puppet gem from
http://reductivelabs.com/trac/puppet/wiki/DownloadingPuppet. I ended up
installing puppet-0.24.8.gem
# /opt/puppet/bin/gem install puppet-0.24.8.gem
* That''s it! Puppet should now be located in
/opt/puppet/lib/ruby/gems/1.8/bin. I ended up creating a puppet module
that links the different binaries from the gems directory to /usr/bin &
/usr/sbin then adds an init script to /etc/init.d
* When you run puppetd for the first time it should create
/etc/puppet and /var/lib/puppet.
Hope this helps!
-Brandon Evans
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2009-Apr-15 00:39 UTC
[Puppet Users] Re: How To: Puppet Setup on Redhat 8 using the puppet gem.
RH 8!!! I didn''t think anyone was still using it ;-) Thanks for info. Unfortunately there are more people using old versions RH than you think. -L On Apr 14, 2009, at 8:29 PM, Brandon Evans wrote:> > I got puppet installed and running on Redhat 8 today. I''m passing > on my > notes to the list to help out others that may want or need puppet > running on older Redhat servers. > > This is pretty much a copy & paste from my own personal wiki so please > forgive any odd formating. > > ==== Puppet Setup on Redhat 8 ===> Here''s a quick-n-dirty on how I got puppet running on redhat 8. > Please > don''t ask me why I needed it running on redhat 8. I will burst into > tears. > > > My object here was to get my redhat 8 servers managed by puppet > alongside the rest of my CentOS servers. > I decided to keep puppet separate from the rest of the system. This > way > I don''t upset the systems chi. > I should point out that I know little about the world of ruby & its > supposed "gems". > In the End this setup works & that is what is all that matters to me. > > === Basic Overview ==> * Installing to /opt/puppet using the puppet gem package. > > * Download the latest openssl source from > http://www.openssl.org/source. I used openssl-0.9.8k.tar.gz > > * extract openssl and install using > > # ./config --prefix=/opt/puppet && make && make install > > * Download and extract Ruby 1.8.x from > ftp://ftp.ruby-lang.org/pub/ruby/1.8. I used ruby-1.8.7-p72.tar.gz > > * Change to the ruby-1.8.7-p72 directory and move the ext/openssl > directory out of the way. > > # cd ruby-1.8.7-p72 > # mv ext/openssl /tmp > > * With the openssl extension out of the way you can now install > puppet like so > # ./configure --prefix=/opt/puppet && make && make install > > * Now that ruby is installed move the openssl directory back into > ./ext then compile the openssl module separately. This is important > because we will be building the openssl ruby module using our openssl > install located in /opt/puppet > > # pwd > # /usr/local/src/puppet_setup/ruby-1.8.7-p72 > # mv /tmp/openssl ./ext > # cd ./ext/openssl > # ../../ruby extconf.rb --with-openssl-include=/opt/puppet/include > --with-openssl-lib=/opt/puppet/lib > # LD_RUN_PATH=/opt/puppet/lib make > # make install > > > * Next we will install rubygems from > http://rubyforge.org/frs/?group_id=126. Here I used version > rubygems-1.3.1.tgz > > * This is an easy install. Extract the rubygems tar then install > it using the newly installed version of ruby. > > # cd rubygems-1.3.1 > # /opt/puppet/bin/ruby setup.rb > > * Almost done. Now download the latest stable puppet gem from > http://reductivelabs.com/trac/puppet/wiki/DownloadingPuppet. I > ended up > installing puppet-0.24.8.gem > > # /opt/puppet/bin/gem install puppet-0.24.8.gem > > * That''s it! Puppet should now be located in > /opt/puppet/lib/ruby/gems/1.8/bin. I ended up creating a puppet > module > that links the different binaries from the gems directory to /usr/ > bin & > /usr/sbin then adds an init script to /etc/init.d > > * When you run puppetd for the first time it should create > /etc/puppet and /var/lib/puppet. > > > Hope this helps! > > -Brandon Evans > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter Meier
2009-Apr-15 09:03 UTC
[Puppet Users] Re: How To: Puppet Setup on Redhat 8 using the puppet gem.
Hi> I got puppet installed and running on Redhat 8 today. I''m passing on my > notes to the list to help out others that may want or need puppet > running on older Redhat servers. > > This is pretty much a copy & paste from my own personal wiki so please > forgive any odd formating.would be cool, if you could add this to the Puppet Wiki. cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
gaurav chaturvedi
2009-Apr-15 11:03 UTC
[Puppet Users] Re: How To: Puppet Setup on Redhat 8 using the puppet gem.
On Wed, Apr 15, 2009 at 5:59 AM, Brandon Evans <bevans@adicio.com> wrote:> > I got puppet installed and running on Redhat 8 today. I''m passing on my > notes to the list to help out others that may want or need puppet > running on older Redhat servers. > > This is pretty much a copy & paste from my own personal wiki so please > forgive any odd formating. >Hey Brandon, Good work, one question though. I see that you are make && make install ''ing at a lot of places. Wouldn''t it be better if you just download the latest source rpm and modify the spec file instead? Just a though. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brandon Evans
2009-Apr-15 15:51 UTC
[Puppet Users] Re: How To: Puppet Setup on Redhat 8 using the puppet gem.
Will do. I''ll clean it up a little and add try to add it today. -Brandon Peter Meier wrote:> Hi > >> I got puppet installed and running on Redhat 8 today. I''m passing on my >> notes to the list to help out others that may want or need puppet >> running on older Redhat servers. >> >> This is pretty much a copy & paste from my own personal wiki so please >> forgive any odd formating. > > would be cool, if you could add this to the Puppet Wiki. > > cheers pete > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brandon Evans
2009-Apr-15 21:07 UTC
[Puppet Users] Re: How To: Puppet Setup on Redhat 8 using the puppet gem.
> Hey Brandon, > > Good work, one question though. I see that you are make && make > install ''ing at a lot of places. Wouldn''t it be better if you just > download the latest source rpm and modify the spec file instead? > > Just a though. >Perhaps. I kept running into issues with either ruby or openssl . The issues I was having while trying to get puppet running on rh8 all boiled down to openssl needing an update & ruby''s openssl module needing to be compiled against the newer openssl. I didn''t want to mess with the OS too much so rather than upgrade openssl & ruby on the system I decided to install everything that puppet needs to run into one place (/opt/puppet) I''m a huge fan of building RPMS and distributing via yum. In this case the time it takes to build the redhat 8 RPMS would take longer then just deploying it manually on the few rh8 servers we have running. -brandon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
David Lutterkort
2009-Apr-16 00:27 UTC
[Puppet Users] Re: How To: Puppet Setup on Redhat 8 using the puppet gem.
On Tue, 2009-04-14 at 17:29 -0700, Brandon Evans wrote:> I got puppet installed and running on Redhat 8 today.Is that really Red Hat Linux 8, released 2002-09-30, or Fedora Core 8 ? If the former I am extremely impressed that you got anything to build. David --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Brandon Evans
2009-Apr-16 16:35 UTC
[Puppet Users] Re: How To: Puppet Setup on Redhat 8 using the puppet gem.
It is Redhat 8 from 2002 >:-} My first swing at getting it running on rh8 didn''t go so well. The method listed here seems to work fine. Since my original post I have since rolled it out to my redhat 8 boxes (about 6 of them) and everything is running smooth. -brandon David Lutterkort wrote:> On Tue, 2009-04-14 at 17:29 -0700, Brandon Evans wrote: >> I got puppet installed and running on Redhat 8 today. > > Is that really Red Hat Linux 8, released 2002-09-30, or Fedora Core 8 ? > If the former I am extremely impressed that you got anything to build. > > David > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---