forked from chef-boneyard/cookbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.rb
55 lines (45 loc) · 2.02 KB
/
metadata.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs djbdns and configures DNS services"
version "0.99.0"
recipe "djbdns", "Installs djbdns from package or source and creates users"
recipe "djbdns::axfr", "Sets up djbdns AXFR service"
recipe "djbdns::cache", "Sets up public dnscache service"
recipe "djbdns::internal_server", "Sets up internal TinyDNS"
recipe "djbdns::server", "Sets up external TinyDNS"
%w{ build-essential runit daemontools bluepill ucspi-tcp }.each do |cb|
depends cb
end
%w{ ubuntu debian centos rhel arch }.each do |os|
supports os
end
attribute "djbdns/tinydns_ipaddress",
:display_name => "DJB DNS TinyDNS IP Address",
:description => "Specify the IP address for TinyDNS",
:default => "127.0.0.1"
attribute "djbdns/tinydns_internal_ipaddress",
:display_name => "DJB DNS TinyDNS Internal IP Address",
:description => "Specify the IP address for internal TinyDNS",
:default => "127.0.0.1"
attribute "djbdns/axfrdns_ipaddress",
:display_name => "DJB DNS AXFR IP Address",
:description => "Specify the IP address for AXFR service",
:default => "127.0.0.1"
attribute "djbdns/public_dnscache_ipaddress",
:display_name => "DJB DNS Public DNS Cache IP Address",
:description => "Specify the IP address for the public dnscache",
:default => "ipaddress"
attribute "djbdns/public_dnscache_allowed_networks",
:display_name => "DJB DNS Public DNS Cache Allowed Networks",
:description => "Networks allowed to query the public dnscache",
:type => "array",
:default => ["ipaddress.split('.')[0,2].join('.')"]
attribute "djbdns/tinydns_internal_resolved_domain",
:display_name => "DJB DNS TinyDNS Internal Resolved Domain",
:description => "Internal domain TinyDNS is resolver",
:default => "domain"
attribute "djbdns/bin_dir",
:display_name => "DJB DNS Binaries Directory",
:description => "Location of the djbdns binaries",
:default => "/usr/local/bin"