ajjahn/puppet-dns — pull request #6 by xironix (2012-10-25 08:20:36+00:00)
Title: also-notify support + fix handling multiple domains

Apologies for the messy pull request. The end result is only a few files changed. I'm still somewhat of a novice with github pull requests. =p

I believe this should cover also-notify support and fix the issue I experienced when managing multiple domains.

An example for multiple domains would be as such:

# A Records:
dns::record::a {
'ex_www': # requires unique name
host => 'www',
zone => 'example.com',
data => ["98.76.54.32"];
'ex1_www':
host => 'www',
zone => 'testing.com',
data => ["98.76.54.32"];
}

For also-notify, we'd use the following format:
# Forward Zone
dns::zone { 'example.com':
serial => '2012102405',
soa => 'ns1.example.com',
soa_email => 'root.example.com',
nameservers => [ 'ns1.example.com', 'ns2.example.com', ],
zone_notify => 'yes',
also_notify => [ '98.76.54.33', '98.76.54.34', '98.76.54.35', ];
}