cookbook 'nsd', '= 0.2.0'
nsd (7) Versions 0.2.0 Follow0
Install and configure NSD
cookbook 'nsd', '= 0.2.0', :supermarket
knife supermarket install nsd
knife supermarket download nsd
nsd cookbook
A Chef cookbook to install nsd master and slaves along with initial zone configuration.
Recipes
nsd::master
Install nsd master and configure zones.
nsd::slave
Install nsd slave and configure zones.
Configuration
Better to explain it by an extract from node attributes:
... "nsd": { "enable_ipv6": true, "master": { "fqdn": "ns1.example.com", "ipv4_address": "1.1.1.1", "ipv6_address": "2001:0db8:0a0b:12f0:0000:0000:0000:0001", "contact": "hostmaster@example.com" }, "slaves": { "ns2.example.com": { "ipv4_address": "2.2.2.2", "ipv6_address": "2001:0db8:0a0b:12f0:0000:0000:0000:0002" }, "ns3.example.com": { "ipv4_address": "3.3.3.3", "ipv6_address": "2001:0db8:0a0b:12f0:0000:0000:0000:0003" } }, "zones": [ "example.com", "test.com" ] }, ...
This configuration describes one master (ns1.example.com
) and two slave servers (ns2.example.com
and ns3.example.com
), all of which host two zones - example.com
itself and test.com
. SOA records will contain hostmaster@example.com
as an email address.
AXFR keys
A zone is modified only on a master server. Then the changes are transferred to slave servers. It is presupposed that each slave server has its own secret key which is stored in an encrypted data bag named nsd
:
{ "id": "production", "keys": { "ns2.example.com": "7DzUnLpx9H...", "ns3.example.com": "1ADEn1fqOo..." } }
A key may be generated with this command:
$ dd if=/dev/random count=1 bs=32 2> /dev/null | base64
Limitations
This cookbook does not set up any firewall rules.
License
MIT @ Alexander Pyatkin
Dependent cookbooks
instance ~> 2.0.0 |
secret ~> 1.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.2.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.2.0 passed this metric
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.0 passed this metric
0.2.0 failed this metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.2.0 passed this metric
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.0 passed this metric
0.2.0 passed this metric
0.2.0 passed this metric
Testing File Metric
0.2.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.0 passed this metric
0.2.0 failed this metric
0.2.0 passed this metric