Using librarian-puppet
When you begin to include modules from the forge in your Puppet infrastructure, keeping track of which versions you installed and ensuring consistency between all your testing areas can become a bit of a problem. Luckily, the tools we will discuss in the next two sections can bring order to your system. We will first begin with librarian-puppet, which uses a special configuration file named Puppetfile to specify the source location of your various modules.
Getting ready
We'll install librarian-puppet to work through the example.
Install librarian-puppet
on your Puppet master, using Puppet of course:
root@puppet:~# puppet resource package librarian-puppet ensure=installed provider=gem Notice: /Package[librarian-puppet]/ensure: created package { 'librarian-puppet': ensure => ['2.0.0'], }
Tip
If you are working in a masterless environment, install librarian-puppet
on the machine from which you will be managing your code. Your gem install may...