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
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ Puppet::Type.newtype(:dns_rr) do
Util::Errors.fail "Invalid resource record class: %s" % rrdata Util::Errors.fail "Invalid resource record class: %s" % rrdata
end end
type = $2 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 Util::Errors.fail "Invalid resource record type: %s" % type
end end
else else
+1 -1
View File
@@ -16,7 +16,7 @@ Puppet::Type.newtype(:resource_record) do
newparam(:type) do newparam(:type) do
desc 'The record type' desc 'The record type'
isrequired 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 end
newparam(:record) do newparam(:record) do