forked from zend-patterns/ZendServerChefCookbook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmetadata.rb
173 lines (152 loc) · 5.04 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
name 'zendserver'
maintainer 'Zend Technologies'
maintainer_email 'maurice.k@zend.com'
license 'All rights reserved'
description 'Installs/Configures zendserver'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.7.1'
depends "apt"
depends "yum"
depends "apache2"
# If planning on using Javabridge, add hte java cookbook as a dependency in a
# wrapper/application cookbook if node[:zendserver][:java_install_source] is cookbook
recipe "zendserver", "Adds the Zend Server repo and installs the package"
recipe "zendserver::single", "Install & bootstrap in 1 step"
recipe "zendserver::cluster", "Install, bootstrap and create/join a cluster in 1 step"
recipe "zendserver::manage", "Manages zend server, typically no direct actions"
recipe "zendserver::bootstrapsingle", "Bootstraps the server in single server mode"
recipe "zendserver::joincluster", "Join a Zend Server Cluster"
attribute "zendserver/url",
:display_name => "Zend Server Base repo URL",
:description => "The URL of the repo",
:required => "optional",
:default => "http://repos.zend.com/zend-server/",
:recipes => [
"zendserver::default"
]
attribute "zendserver/version",
:display_name => "Zend Server version",
:description => "The version to install - must be a valid repository version",
:required => "optional",
:default => "7.0",
:recipes => [
"zendserver::default"
]
attribute "zendserver/phpversion",
:display_name => "PHP version",
:description => "The PHP version to install - must be a valid PHP version for the Zend Server selected version",
:required => "optional",
:default => "5.5",
:recipes => [
"zendserver::default"
]
attribute "zendserver/basedirdeb",
:display_name => "Debian base directory",
:description => "The base directory to use from the repo. Useful on debian to use apache 2.4, or for early access",
:required => "optional",
:recipes => [
"zendserver::default"
]
attribute "zendserver/basedirrpm",
:display_name => "RPM base directory",
:description => "The base directory to use from the repo.",
:required => "optional",
:recipes => [
"zendserver::default"
]
attribute "zendserver/adminpassword",
:display_name => "Admin password",
:description => "Zend Server GUI admin password",
:required => "required",
:recipes => [
"zendserver::bootstrapsingle"
]
attribute "zendserver/ordernumber",
:display_name => "Order number",
:description => "Zend Server license order number",
:required => "required",
:recipes => [
"zendserver::bootstrapsingle"
]
attribute "zendserver/licensekey",
:display_name => "License key",
:description => "Zend Server license key",
:required => "required",
:recipes => [
"zendserver::bootstrapsingle"
]
attribute "zendserver/production",
:display_name => "Production mode",
:description => "Whether to set Zend Server up as a development or production server (Monitoring rules, agregation, ...).",
:required => "optional",
:choice => ["TRUE", "FALSE"],
:default => "TRUE",
:recipes => [
"zendserver::bootstrapsingle"
]
attribute "zendserver/apikeyname",
:display_name => "Api key name",
:description => "An API key we can subsequently use",
:required => "optional",
:default => "rightscale",
:recipes => [
"zendserver::bootstrapsingle",
"zendserver::manage"
]
attribute "zendserver/apikeysecret",
:display_name => "Api key secret",
:description => "An API key secret we can sbsequenly use (64 chars)",
:required => "required",
:recipes => [
"zendserver::bootstrapsingle",
"zendserver::manage"
]
attribute "zendserver/adminemail",
:display_name => "Admin Email",
:description => "Administrator's email (to send alerts to)",
:required => "optional",
:recipes => [
"zendserver::bootstrapsingle"
]
attribute "zendserver/nginx",
:display_name => "nginx web server",
:description => "Install nginx instead of Apache",
:required => "optional",
:recipes => [
"zendserver::default"
]
attribute "zendserver/devpassword",
:display_name => "Developer password",
:description => "Developer's account password",
:required => "optional",
:recipes => [
"zendserver::bootstrapsingle"
]
attribute "zendserver/dbhost",
:display_name => "Database Host name/IP",
:description => "A valid MySQL database for the clustering functionality.",
:required => "optional",
:recipes => [
"zendserver::joincluster"
]
attribute "zendserver/dbusername",
:display_name => "MySQL username",
:description => "The MySQL username",
:required => "optional",
:recipes => [
"zendserver::joincluster"
]
attribute "zendserver/dbpassword",
:display_name => "MySQL password",
:description => "The MySQL password",
:required => "optional",
:recipes => [
"zendserver::joincluster"
]
attribute "zendserver/dbname",
:display_name => "Database name",
:description => "The MySQL database name to use (Default: ZendServer)",
:required => "optional",
:recipes => [
"zendserver::joincluster"
]