Using librarian

Librarian is a bundler for Ruby. It handles dependency checking for you. The project to use librarian with Puppet is called librarian-puppet and is available at http://rubygems.org/gems/librarian-puppet. To install librarian-puppet, we'll use RubyGems since no rpm packages exist in public repositories at this time. To avoid user-installed gems from polluting our Ruby structure, we'll install librarian-puppet into the Git user's .gem directory, and copy the modules into a directory the Puppet master can use, using the following commands:

git@worker1$ gem install --user-install librarian-puppet
WARNING:  You don't have /var/lib/git/.gem/ruby/1.8/bin in your PATH,
    gem executables will not run.
Successfully installed thor-0.18.1

Get Mastering Puppet now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.