Commit Graph

285 Commits

Author SHA1 Message Date
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
Tilo Klausing fe0a845f65 statistics channel can optinally be enabled 2015-02-12 21:29:05 +01:00
Nate Riffe 2a3033dedb Release version 3.5.0 2015-01-19 11:38:29 -06:00
Nate Riffe 63450a9e21 Document the relationship between zones and views
Clarify that a zone must be included in a view and may be included in multiple
views in order to be declared in the nameserver's configuration.
2015-01-19 11:13:58 -06:00
Nate Riffe e13e18ad82 README formatting 2015-01-19 10:35:37 -06:00
Nate Riffe 72928a6ae3 Merge pull request #21 from inkblot/rndc-configuration
Configure rndc correctly. Fixes #19
2015-01-18 10:48:17 -06:00
Nate Riffe f2673698f5 Merge pull request #20 from inkblot/auto-generating-keys
Auto generating keys
2015-01-18 10:45:32 -06:00
Nate Riffe 58d79f807b Document the new autokeying hotness 2015-01-18 10:37:35 -06:00
Nate Riffe 01cb48191e Generate an rndc key, let BIND rest on defaults
In the absence of any 'controls' configuration, BIND uses the rndc.key file
containing a key named rndc-key for rndc by default. In this mode, there is
also no need for any explicit settings in rndc.conf.
2015-01-18 10:31:12 -06:00
Nate Riffe 9b1cbacee0 Give bind::key the ability to generate keys
Also, allow them to be placed elsewhere in the filesystem and make it possible
to exclude a key from the named configuration.
2015-01-18 10:11:24 -06:00
Nate Riffe a981de576e Release version 3.4.4 2015-01-13 07:50:52 -06:00
Nate Riffe 0f12e399bb Merge pull request #18 from klti/pr-view-improvements
I'm not familiar with the "match-recursive-only" directive, but this all seems reasonable.
2015-01-12 11:50:50 -06:00