-
Notifications
You must be signed in to change notification settings - Fork 1
/
metadata.rb
42 lines (35 loc) · 1.29 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
name "resolver"
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures /etc/resolv.conf via attributes"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.1.1"
recipe "resolver", "Configures /etc/resolv.conf via attributes"
recipe "resolver::from_server_role", "Manages nameservers from role with explicitly set servers"
%w{ ubuntu debian fedora centos redhat freebsd openbsd macosx }.each do |os|
supports os
end
attribute "resolver",
:display_name => "Resolver",
:description => "Hash of Resolver attributes",
:type => "hash"
attribute "resolver/search",
:display_name => "Resolver Search",
:description => "Default domain to search",
:default => "domain"
attribute "resolver/nameservers",
:display_name => "Resolver Nameservers",
:description => "Default nameservers",
:type => "array",
:default => []
attribute "resolver/options",
:display_name => "Resolver Options",
:description => "Default resolver options",
:type => "hash",
:default => {}
attribute "resolver/server_role",
:display_name => "Resolver Server Role",
:description => "Name of the role applied to the DNS resolver node",
:type => "string",
:default => "nameserver"