-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.rb
90 lines (73 loc) · 2.81 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
87
88
89
90
maintainer "John E. Vincent"
maintainer_email "[email protected]"
license "Apache 2.0"
description "Installs Noah"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.8.2"
recipe "noah::default", "Provides the Noah LWRP"
recipe "noah::server", "Installs the Noah server with self-contained Redis"
recipe "noah::client", "Uses search to find local Noah server for client settings"
recipe "noah::register", "Provides for self-registration of node in Noah"
%w{ debian ubuntu centos redhat fedora }.each do |os|
supports os
end
attribute "noah",
:display_name => "Noah Server Hash",
:description => "Hash of Noah Server Attributes",
:type => "hash"
attribute "noah/client",
:display_name => "Noah Client Hash",
:description => "Hash of Noah Client Attributes",
:type => "hash"
attribute "noah/server_role",
:display_name => "Server Role",
:description => "Role to use in search-based autodiscovery of a Noah server",
:default => "noah_server"
attribute "noah/redis_version",
:display_name => "Redis Version",
:description => "Version of Redis to use with Noah",
:default => "2.2.4"
attribute "noah/redis_port",
:display_name => "Redis Port",
:description => "Port number for Redis to bind",
:default => "6381"
attribute "noah/port",
:display_name => "Port",
:description => "Port number for Noah to bind",
:default => "5678"
attribute "noah/user",
:display_name => "User",
:description => "System account to run Noah",
:default => "noah"
attribute "noah/version",
:display_name => "Noah Version",
:description => "Version of Noah to install",
:default => "0.8.4"
attribute "noah/home",
:display_name => "Noah Home Directory",
:description => "Directory to install Noah. Redis data is stored here.",
:default => "/var/lib/noah"
attribute "noah/logdir",
:display_name => "Noah Log Directory",
:description => "Directory to use for Noah Logs",
:default => "/var/log/noah"
attribute "noah/client/timeout",
:display_name => "Noah Client Timeout",
:description => "Time to wait in connecting to Noah (in seconds)",
:default => "30"
attribute "noah/client/on_failure",
:display_name => "Noah Client Failure Response",
:description => "Client response to failure in connecting to Noah",
:default => ":fail"
attribute "noah/client/retry_interval",
:display_name => "Noah Client Retry Interval",
:description => "Number of times to retry connection before failing",
:default => "5"
attribute "noah/client/noah_host",
:display_name => "Noah Client Default Server",
:description => "Host to use as the Noah Server",
:default => "localhost"
attribute "noah/client/noah_port",
:display_name => "Noah Client Default Server Port",
:description => "Port to use for the default Noah Server",
:default => "5678"