chef-lctp/site-cookbooks/bind
2014-01-27 11:38:48 +01:00
..
attributes First commit 2014-01-19 15:34:01 +01:00
files/default/test seperate node specific data from role 2014-01-21 23:11:25 +01:00
recipes fix bind cookboofix bind cookbookk 2014-01-20 16:10:18 +01:00
templates/default add chef header to templates 2014-01-27 09:13:24 +01:00
metadata.rb First commit 2014-01-19 15:34:01 +01:00
README.md add documentation 2014-01-27 11:38:48 +01:00

Description

Install bind9 and add zones files:

Attributes

node.bind.forwarders - upstream dns servers, default is ["8.8.8.8", "8.8.4.4"]. node.bind.trusted_subnets - subnets, which are allowed to query, default is ["localhost", "localnets"]. node.bind.zones - hash of wanted dns zones (see usage), default is {}.

Usage

example for zones:

node.default["zones"] = {
  "foo": {
    "records": [
      { "name": "node0", "type": "A", "value": "172.28.128.1" },
      { "name": "node1", "type": "A", "value": "172.28.128.101" }
    ]
  },
  "128.28.172.in-addr.arpa": {
    "records": [{ "name": "101", "type": "PTR", "value": "node1" }]
  }
}