forked from sous-chefs/djbdns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata.rb
71 lines (60 loc) · 2.89 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name "djbdns"
maintainer "Opscode, Inc."
maintainer_email "[email protected]"
license "Apache 2.0"
description "Installs djbdns and configures DNS services"
version "1.0.2"
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 daemontools bluepill ucspi-tcp }.each do |cb|
depends cb
end
depends "runit"
%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/tinydns_internal_resolved_reverse_domains",
:display_name => "DJB DNS TinyDNS Internal Resolved Reverse Domains",
:description => "Internal IP (in-addr.arpa) domains TinyDNS is resolver for",
:default => [
"10.in-addr.arpa" ,"16.172.in-addr.arpa", "17.172.in-addr.arpa",
"18.172.in-addr.arpa", "19.172.in-addr.arpa", "20.172.in-addr.arpa",
"21.172.in-addr.arpa", "22.172.in-addr.arpa", "23.172.in-addr.arpa",
"24.172.in-addr.arpa", "25.172.in-addr.arpa", "26.172.in-addr.arpa",
"27.172.in-addr.arpa", "28.172.in-addr.arpa", "29.172.in-addr.arpa",
"30.172.in-addr.arpa", "31.172.in-addr.arpa", "168.192.in-addr.arpa",
"0.in-addr.arpa", "127.in-addr.arpa", "254.169.in-addr.arpa",
"2.0.192.in-addr.arpa", "100.51.198.in-addr.arpa", "113.0.203.in-addr.arpa",
"255.255.255.255.in-addr.arpa" ]
attribute "djbdns/bin_dir",
:display_name => "DJB DNS Binaries Directory",
:description => "Location of the djbdns binaries",
:default => "/usr/local/bin"