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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to