O'Reilly logo

Puppet 4.10 Beginner's Guide - Second Edition by John Arundel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using modules in your manifests

Now that we know how to find and install public Puppet modules, let's see how to use them. We'll work through a few examples—using the puppetlabs/mysql module to set up a MySQL server and database, using the puppetlabs/apache module to set up an Apache website, and using puppet/archive to download and unpack a compressed archive. After you've tried out these examples, you should feel quite confident in your ability to find an appropriate Puppet module, add it to your Puppetfile, and deploy it with r10k.

Using puppetlabs/mysql

Follow these steps to install and use the puppetlabs/mysql module:

  1. Run the following command to copy the appropriate Puppetfile from the examples directory:
    cd /etc/puppetlabs/code/environments/production ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required