Installing Facter From Source
The facter library is a prerequisite for Puppet. Like Puppet, there are packages available for most platforms, though you may want to use the tarball if you would like to try a newer version or are using a platform without an OS package:
Get the latest tarball:
$ wget http://puppetlabs.com/downloads/facter/facter-1.6.0.tar.gz
Untar and install facter:
$ gzip -d -c facter-latest.tgz | tar xf -
$ cd facter-*
$ sudo ruby install.rb # or become root and run install.rb
Installing Puppet From Source
Using the same mechanism as Facter, install the puppet libraries and executables:
# get the latest tarball
$ wget http://puppetlabs.com/downloads/puppet/puppet-latest.tgz
# untar and install it
$ gzip -d -c puppet-latest.tgz | tar xf -
$ cd puppet-*
$ sudo ruby install.rb # or become root and run install.rb
You can also check the source out from the git repo:
$ mkdir -p ~/git && cd ~/git
$ git clone git://github.com/puppetlabs/puppet
$ cd puppet
$ sudo ruby ./install.rb
To install into a different location you can use:
$ sudo ruby install.rb --bindir=/usr/bin --sbindir=/usr/sbin
Alternative Install Method: Using Ruby Gems
You can also install Facter and Puppet via gems:
$ wget http://puppetlabs.com/downloads/gems/facter-1.5.7.gem
$ sudo gem install facter-1.5.7.gem
$ wget http://puppetlabs.com/downloads/gems/puppet-0.25.1.gem
$ sudo gem install puppet-0.25.1.gem
No comments:
Post a Comment