O'Reilly logo

Mastering Puppet 5 by Jason Southgate, Ryan Russell-Yates

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

Build

We'll begin at the site.pp again, and model our application from the endpoint. I have added two additional service lines that ensure that firewalls are disabled for the purpose of this lesson. We could consider using puppetlabs/firewall to manage our firewall as well, and even produce and consume FQDNs for our firewall. In the following sample, you will notice a few things:

  • We're passing a dbpass variable to the application. This could be stored in Hiera and encrypted with EYAML.
  • We have two wordpress nodes and two haproxy nodes that each have their own unique name in the appserver:
# For the purposes of this demo, the next two lines can be used to ensure firewalls# are off for all CentOS nodes.service {'iptables': ensure => stopped ...

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