Commit Graph

356 Commits

Author SHA1 Message Date
Nate Riffe
b532680b3b Merge pull request #31 from norcams/keyfile_resource_record
Support custom keyfile paths
2015-06-12 19:16:45 -05:00
Nate Riffe
4241f29c50 Merge pull request #44 from ocadotechnology/wip-update-policy
Add support for the update-policy statement
2015-06-12 19:14:14 -05:00
Mike Bryant
1e8d0b3d0d Add support for the update-policy statement 2015-06-11 15:56:01 +01:00
Nate Riffe
b44b6ad0ce Release version 4.1.2 2015-05-22 12:51:03 -05:00
Nate Riffe
c5f463bfac Merge pull request #42 from inkblot/provider-fixes-41
Provider fixes #41
2015-05-22 12:50:29 -05:00
Nate Riffe
eb58ab9afc Document the need for qualfied names
Several record types do not function correctly with the `resource_record` type
unless their values are specified as fully-qualified names with a trailing dot.
This adds clarifying information to the documentation and fixes a couple of
examples which are actually broken.
2015-05-22 12:13:19 -05:00
Nate Riffe
a0f5ebde8a Make ensure => absent work again
The incremental update change made NS record updates work for non-glue NS
records, but broke `ensure => absent` because there is no semantic guarantee
that the contents of the `data` member match what's in DNS. Set math ensures
that hilarity ensues.
2015-05-22 07:49:36 -05:00
Nate Riffe
7555cdd4e0 Fix type handling
Both the guts of the PuppetBind::Provider::Nsupdate module and the type method
of the dns_rr(nsupdate) provider produce and expect the type expressed as a
string, but the resource_record(nsupdate) provider's type method produces
symbols. This accidentally worked for a while, then it didn't. Also, in
quoted_type? that's supposed to be an array of strings, not a quoted string.
2015-05-21 14:24:35 -05:00
Nate Riffe
7edd25aac2 Release version 4.1.1 2015-05-19 14:49:04 -05:00
Nate Riffe
9038011ed7 Merge pull request #39 from inkblot/quote-txt-rrdata
Automatic quote and unquote TXT and SPF
2015-05-19 14:44:53 -05:00
Nate Riffe
f2593601e8 Automatic quote and unquote TXT and SPF
TXT and SPF record values have to be quoted in the nsupdate script in order to
preserve the integrity of the string.
2015-05-19 14:29:33 -05:00
Nate Riffe
beaf69c2e5 Merge pull request #38 from dougneal/misc_fixes
Misc fixes
2015-05-18 19:07:25 -05:00
Doug Neal
5b4d9f772e Fix bad variable name in bind::zone parameter validation code 2015-05-18 17:22:32 +01:00
Doug Neal
bd7f25c6ce Leave out dnssec-validation and dnssec-lookaside from named.conf when dnssec is disabled 2015-05-18 17:20:18 +01:00
Nate Riffe
96d4d70c1a This description always was an outlier 2015-05-15 08:07:53 -05:00
Nate Riffe
c6d101b7c3 Release version 4.1.0 2015-05-15 08:05:24 -05:00
Nate Riffe
993692aa85 Merge pull request #36 from inkblot/managed-zone-file
Add `dynamic` parameter to `bind::zone`
2015-05-15 07:56:26 -05:00
Nate Riffe
9f489dcb6f validate_bool means something else
`validate_bool` validates that the passed value(s) are boolean, not that they
are true. Reformulate the calls to `unless` blocks, and remove the check for
"dynamic implies master" since setting `dynamic` to true is 1) the default and
2) does not cause any change to configuration text or manifest behavior when
the zone is not master.
2015-05-15 07:42:52 -05:00
Nate Riffe
20e50bf43a That needs to be a reload 2015-05-14 16:05:44 -05:00
Nate Riffe
54eea45d7d Refresh managed zones after a zone file change. 2015-05-14 15:36:41 -05:00
Nate Riffe
5ca584ff13 Merge pull request #35 from dougneal/error_reporting
Improve error reporting
2015-05-14 11:29:19 -05:00
Nate Riffe
aa7b743dd6 Document new functionality 2015-05-14 11:27:44 -05:00
Nate Riffe
9f5c4bacb0 Add dynamic parameter to bind::zone
Add a parameter to `bind::zone` which indicates whether a zone is dynamic or
not. This has the effect of allowing puppet to manage the zone file rather than
simply initialize it. This change also introduces more appropriate handling of
slave and stub zones, so that puppet will not populate a stock zone file,
forcing the nameserver to do a zone transfer when a zone is created.

Also, there is now a substancial amount of validation in the `bind::zone` class
in order to prevent invalid parameter combinations, so that validity may be
assumed elsewhere in the manifest and in the configuration template.
2015-05-14 11:14:48 -05:00
Doug Neal
882214a2a9 On resource_record validation failure, raise an ArgumentError instead of calling Util::Errors.fail 2015-05-14 14:50:01 +01:00
Nate Riffe
ebe75830c6 Release version 4.0.4 2015-05-05 14:06:50 -05:00
Nate Riffe
52d4224961 Merge pull request #34 from backstop/query-sections
Allow response records from other sections
2015-05-05 13:54:44 -05:00
Nate Riffe
1f36024194 Document the query_section parameter 2015-05-05 13:01:25 -05:00
Nate Riffe
ce0dada818 Also supply +norecurse
This should be universal, since we are explicitly querying the server where
we'll apply a change via nsupdate, therefore it must be an authority.
2015-05-05 12:40:22 -05:00
Nate Riffe
019aefac22 Allow response records from other sections
DNS queries for delegation records to poorly constructed zones won't have
answers, but they will have authority. Also, +nosearch
2015-05-05 11:52:51 -05:00
Nate Riffe
a2fcc87a13 Merge pull request #33 from inkblot/incremental-update
Update RRData incrementally
2015-05-01 08:10:54 -05:00
Nate Riffe
827fb1e88f Update RRData incrementally
Compute the adds and deletes required to get from existing RRData to new RRData
and perform just those operations instead of doing a complete drop/add of the
entire RRData set. Also during an update, do adds before deletes. This
eliminates the existence gap and fixes #29
2015-05-01 08:01:12 -05:00
Jan Ivar Beddari
53d60fe8a7 Support custom keyfile paths
This makes it possible to use resource_record with "standalone"
keyfiles by introducing a keyfile parameter
2015-04-17 13:01:56 +02:00
Nate Riffe
eb6d3f5d63 Lint says these are bad 2015-03-23 19:16:37 -05:00
Nate Riffe
286dc6f361 Release version 4.0.2 2015-03-23 19:00:02 -05:00
Nate Riffe
8553131613 Merge pull request #26 from smithtrevor/stub_zones
Stub zones
2015-03-23 18:56:56 -05:00
Nate Riffe
f786420014 Tighten up the timing in db.empty
stub and slave zones need to be overwritten with data from their master server
in a reasonable timeframe. Drop all of the intervals in the db.empty SOA down
to sub-minute values to speed convergence.
2015-03-22 17:42:44 -05:00
Trevor Smith
22caf612ba move the check for the stub zone type to ensure the cachedir is created 2015-03-20 13:45:57 -04:00
Trevor Smith
55922e8974 change has_zone_file back to true for the stub zone type and add logic to prevent the file from being created by puppet 2015-03-20 13:45:57 -04:00
Trevor Smith
13723a72cf add closing block 2015-03-20 13:45:57 -04:00
Trevor Smith
015f7174cc add logic to prevent the notify option being included in the zone file for stub zones 2015-03-20 13:45:57 -04:00
Trevor Smith
80e3e6e55c change has_zone_file to false for the stub zone type as stub zones will create their own file based on results from the master servers for that zone 2015-03-20 13:45:57 -04:00
Nate Riffe
84bf840495 Release version 4.0.1 2015-03-20 12:17:29 -05:00
Nate Riffe
64aebc5173 Merge pull request #25 from smithtrevor/centos_support
Centos support
2015-03-20 12:14:45 -05:00
Trevor Smith
4d4fb12b3c change include statement to fully qualify the params class. This prevents puppet from attempting to include ::params 2015-03-19 12:23:12 -04:00
Trevor Smith
7a6250d00a change tests and hiera fixtures to allow tests to pass with the changes to the config path 2015-03-19 12:14:28 -04:00
Trevor Smith
e27e9a9e85 fix typo 2015-03-19 12:10:19 -04:00
Trevor Smith
b0e44a1b8f fix typo 2015-03-19 12:09:14 -04:00
Trevor Smith
616b32e8f5 add namedconf parameter with default undef that will pull it's value for the module_data hiera backend. change the file resource for named.conf to use this value instead of being relative to the confdir parameter. This is needed because redhat based derivatives store the named.conf file under /etc not /etc/named/ 2015-03-19 12:04:43 -04:00
Trevor Smith
ed93592837 add namedconf entry that specifies the full path to the named.conf file 2015-03-19 12:02:07 -04:00
Nate Riffe
c27b3d5219 Release version 4.0.0 2015-03-11 11:35:19 -05:00