Merge pull request #22 from klti/pr-record-type-ds

Add record type DS. Thanks for the pull request!
This commit is contained in:
Nate Riffe 2015-02-12 20:21:54 -06:00
commit 51b139afd9
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ Puppet::Type.newtype(:dns_rr) do
Util::Errors.fail "Invalid resource record class: %s" % rrdata
end
type = $2
if ( !%w(A AAAA CNAME NS MX SPF SRV NAPTR PTR TXT).include? type)
if ( !%w(A AAAA CNAME NS MX SPF SRV NAPTR PTR TXT DS).include? type)
Util::Errors.fail "Invalid resource record type: %s" % type
end
else

View File

@ -16,7 +16,7 @@ Puppet::Type.newtype(:resource_record) do
newparam(:type) do
desc 'The record type'
isrequired
newvalues 'A', 'AAAA', 'CNAME', 'NS', 'MX', 'SPF', 'SRV', 'NAPTR', 'PTR', 'TXT'
newvalues 'A', 'AAAA', 'CNAME', 'NS', 'MX', 'SPF', 'SRV', 'NAPTR', 'PTR', 'TXT', 'DS'
end
newparam(:record) do