-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathmetadata.rb
86 lines (71 loc) · 2.46 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
maintainer "Eric G. Wolfe"
maintainer_email "[email protected]"
license "Apache 2.0"
description "Installs/Configures snmp on redhat, centos, ubuntu, debian"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
depends "perl"
version "0.2.1"
recipe "snmp", "Installs and configures snmpd"
%w{ ubuntu debian redhat centos scientific fedora }.each do |os|
supports os
end
attribute "snmp",
:display_name => "SNMP",
:description => "Hash of SNMP attributes",
:type => "hash"
attribute "snmp/service",
:display_name => "SNMPD",
:description => "SNMP Daemon name",
:calculated => true
attribute "snmp/packages",
:display_name => "SNMP packages",
:description => "SNMP packages name",
:calculated => true
attribute "snmp/cookbook_files",
:display_name => "SNMP cookbook files",
:description => "SNMP cookbook files for Debian/Ubuntu",
:calculated => true
attribute "snmp/community",
:display_name => "Community String",
:description => "Community String, defaults to public",
:default => "public",
:required => "recommended"
attribute "snmp/syslocationVirtual",
:display_name => "syslocation Virtual",
:description => "syslocation for Virtual Machines",
:default => "Virtual Server",
:required => "optional"
attribute "snmp/syslocationPhysical",
:display_name => "syslocation Physical",
:description => "syslocation for Physical Machines",
:default => "Server Room",
:required => "optional"
attribute "snmp/syscontact",
:display_name => "syscontact",
:description => "System Contact",
:default => "Root <root@localhost>",
:required => "optional"
attribute "snmp/trapcommunity",
:display_name => "trapcommunity",
:description => "SNMP Trap Community",
:default => "public",
:required => "optional"
attribute "snmp/trapsinks",
:display_name => "trapsinks",
:description => "Trapsink hostnames for NMS systems",
:type => "array"
attribute "snmp/full_systemview",
:display_name => "full_systemview",
:description => "Enable full systemview for NMS systems",
:default => "false",
:required => "recommended"
attribute "snmp/install_utils",
:display_name => "install_utils",
:description => "Enable installation of SNMP utilities, like snmpwalk",
:default => "false",
:required => "optional"
attribute "snmp/is_dnsserver",
:display_name => "is_dnsserver",
:description => "Enable snmp_rndc_stats SNMP Extend monitor",
:default => "false",
:required => "optional"