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
|
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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user