Forge Home

pdns

Installs PowerDNS and PuppetDB backend

11,327 downloads

10,170 latest version

3.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.2.0 (latest)
  • 1.1.0
  • 1.0.0
  • 0.1.1
released Jan 17th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'evenup-pdns', '1.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add evenup-pdns
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install evenup-pdns --version 1.2.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

evenup/pdns — version 1.2.0 Jan 17th 2014

What is it?

A Puppet module that installs PowerDNS authority and recursor servers and a pipe backend for PowerDNS to resolve nodes based on facts in PuppetDB. The authority server uses both a bind backend for static names and a pipe backend to resolve hostnames from PuppetDB. Unknown requests from sources are forwarded to the recursor service on localhost.

Please see the comments in the various .pp files for details.

Released under the Apache 2.0 licence

Usage:

Configuration is done through class parameters for configuring the hostname of the PuppetDB server and frequency of the cache refresh as well as a regex (if desired) to filter what requests should be passed to the PuppetDB pipe backend.

To install:

To install a BIND zonefile for corp.example.com:

Class Variables:

  • puppetdb_server - Hostname of the puppetdb server.
  • puppetdb_logfile - Location to write the logfile for the pipe backend
  • puppetdb_loglevel - Log level of the pipe backend
  • puppetdb_reload - Frequency to refresh the node names from PuppetDB
  • pdns_regex - Regex for matching what queries should be passed to the PuppetDB pipe backend. An example which would query the PuppetDB backend for all hostnames in the corp.example.com domain and reverse lookups for any IP in the 10/8 space would be:

Dependencies:

Known Issues:

  • Only tested on RHEL 6.3 and puppet 3.0.1 using the pdns packages from EPEL

Contact:

Justin Lambert / jlambert@letsevenup.com / @jlambert121