Commit Graph

396 Commits

Author SHA1 Message Date
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
Nate Riffe
174298b41a Merge pull request #24 from klti/pr-centos
CentOS / RedHat support
2015-03-09 14:16:59 -05:00
Tilo Klausing
151eaf58e3 dont subdire cache directory on centos, issues with dynamic etc 2015-03-09 14:21:12 +01:00
Tilo Klausing
1706f42f00 added CentOs/RedHat 6 to metadata compatibility information 2015-03-09 14:21:12 +01:00
Tilo Klausing
f6bdbaac3a CentOS support 2015-03-09 14:21:12 +01:00
Nate Riffe
5936d88fd8 Release version 3.6.0 2015-02-12 20:48:18 -06:00
Nate Riffe
91799435ea Merge pull request #22 from klti/pr-statistics 2015-02-12 20:35:16 -06:00
Nate Riffe
fe3de874ea Make a couple of formatting changes
* Line up the parameter defaults in init.pp
* Put the leading whitespace ahead of the statistics-channel conditional block
  inside the condition to avoid superfluous blank lines in the generated file
2015-02-12 20:33:22 -06:00
Nate Riffe
51b139afd9 Merge pull request #22 from klti/pr-record-type-ds
Add record type DS. Thanks for the pull request!
2015-02-12 20:21:54 -06:00
Tilo Klausing
97387e441a added record type DS (Pt 2) 2015-02-12 21:32:13 +01:00
Tilo Klausing
f36cd04732 added record type DS 2015-02-12 21:31:59 +01:00