Merge pull request #22 from klti/pr-record-type-ds
Add record type DS. Thanks for the pull request!
This commit is contained in:
commit
51b139afd9
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user