GitXplorerGitXplorer
j

puppet-bind

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
fc32120a37acc111cc51215df9f735c2ba45670f

Added basic usage to readme

jjulian7 committed 12 years ago
Unverified
ec6e48d04d81678d107091e72b70ea45f61c4095

Gitignore

jjulian7 committed 12 years ago
Unverified
14de348208f9ece344e272916fe45ec8aa0d9450

Added license

jjulian7 committed 12 years ago
Unverified
a8992d069c456ded298772f08094557ee26510a7

Added bind module

jjulian7 committed 12 years ago

README

The README file for this repository.

bind9 puppet module

This module targets Ubuntu (12.04 onwards) Bind 9 DNS setups. Extracted from my puppetmaster.

OpenBSD support is likely (since my secondary is an OpenBSD server).

Usage

Basic setup:

include bind
class {bind::options:
  # ...
}

bind::options class takes the following parameters:

  • directory: working directory
  • recursion: true if you want to serve DNS for other hosts, false for serving only your zones for other DNS servers.
  • listen_on: accepts DNS requests on these IPv4 addresses (default: ['any']). Requires array.
  • listen_on_v6: accepts DNS requests on these IPv6 addresses (defoult: unset). When set, requires array.

and then define zones:

class {bind::zones:
  masters => ['example.com', 'foobar.biz'],
  slaves => {
    'slave.domain' => ['ma.st.er.ip'],
    'another.slave' => ['1.2.3.4', '5.6.7.8']
  },
  source_base => 'puppet:///path/to/bind/zores/dir/'
}

bind::zones class takes the following parameters:

  • masters: array of domain names served by the local host. Files will be deployed to /etc/bind/master/<domain name>
  • slaves: hash of domain-master IP pairs. Master IP addresses have to be given in an array.
  • source_base: this is the directory where puppet gets zone files from. Zone files are named from domain names.

Copyright

Copyright © Balazs Nagy, released under the MIT license