This module installs and manages the bind package. The module is designed to get all of it's configuration variables from hiera. The zone data is pulled from an external source that returns JSON arrays and hiera. The external source needs to be a REST like service that takes the arguments appname, apptoken, and domain. An example of a data source is phpIPAM-api.
Support for reverse lookup zones on subnets larger than CIDR /24 requires ruby gem netaddr.
Installs the named service, the module currently defaults to using a chroot environemnt. Defined types are called from this manifest to write the configuration file and zone data files.
Controls the main named service and handles restarts when zone files change.
This defined type will get data from hiera to build the named.conf file and call the necessary defined type to build zone files. Zones are added to a name server by defining them in the host yaml file as shown below.
bind::domains: winbox.local: type: slave master: - 192.168.88.3 slave: - 192.168.88.5 example.com: type: master slave: - 192.168.88.5
To add domain records, add the data to hiera under the domain it belongs to. The same form applies for adding CNAME records to agiven domain, as shown below. MX and other record types will follow in the future.
.... bind::zones: example.com: ttl: 3600 nameservers: - ns1.example.com - ns2.example.com data: foo: 192.168.135.5 sally: 192.168.135.6 dingbat: small-bird.local.
This defined type creates any forward lookup zones for bind, the data for the zone files will be a combination of hiera data and external data from some source. This defined type will also write the serial number for the zone file and call
named-compilezone to insure there are server stopping errors.
This defined type will create a reverse lookup zone using the external data source. If you happen to have zones that are not CIDR 24, this defined type calls another defined type to handle those zones. For the time being only CIDR subnets larger than 24 are supported.
- puppetlabs/stdlib (4.x)
The MIT License (MIT) Copyright (c) 2015 CoverMyMeds Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.