deprec 3.1.0.rc3 → 3.1.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +32 -1
- data/{lib/deprec/cap.rb → docs/old_cap_require_list.rb} +0 -6
- data/lib/deprec.rb +2 -2
- data/lib/deprec/{cap/callbacks → callbacks}/asset_pipeline.rb +0 -0
- data/lib/deprec/callbacks/deploy.rb +3 -0
- data/lib/deprec/{cap/recipes → recipes}/aoe.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/apache.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/bash.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/canonical.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/collectd.rb +0 -0
- data/lib/deprec/{rake → recipes}/db.rake +0 -0
- data/lib/deprec/recipes/deploy.rb +21 -0
- data/lib/deprec/{cap/recipes → recipes}/deprecated.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/ec2.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/example.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/git.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/haproxy.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/heartbeat.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/logrotate.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/lvm.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/mongrel.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/monit.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/mri.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/mysql.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/nagios.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/nagios3.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/network.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/nginx.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/nrpe.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/ntp.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/passenger.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/php.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/postfix.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/postgresql.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/rack.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/rails.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/ree.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/rubygems.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/sqlite.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/ssh.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/ssl.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/stunnel.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/syslog.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/syslog_ng.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/ubuntu.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/users.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/utils.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/xen.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/xentools.rb +0 -0
- data/lib/deprec/{cap/templates → templates}/aoe/aoe-init +0 -0
- data/lib/deprec/{cap/templates → templates}/aoe/fence_aoemask +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/CHANGES.txt +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/apache2.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/default.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/namevirtualhosts.conf +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/ports.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/status.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/vhost.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/bash/bash_global +0 -0
- data/lib/deprec/{cap/templates → templates}/collectd/collectd-init.d +0 -0
- data/lib/deprec/{cap/templates → templates}/collectd/collectd.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/deprec/caprc.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/haproxy/haproxy-init.d +0 -0
- data/lib/deprec/{cap/templates → templates}/haproxy/haproxy.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/heartbeat/authkeys.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/heartbeat/ha.cf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/heartbeat/haresources.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/logrotate/logrotate.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/mongrel/apache_vhost.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/mongrel/logrotate.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/mongrel/mongrel_cluster-init-script +0 -0
- data/lib/deprec/{cap/templates → templates}/mongrel/mongrel_cluster.yml.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/mongrel/monit.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/mongrel/nginx_vhost.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/monit/monit-init-script +0 -0
- data/lib/deprec/{cap/templates → templates}/monit/monitrc.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/monit/nothing.monitrc +0 -0
- data/lib/deprec/{cap/templates → templates}/mysql/create_databases.sql +0 -0
- data/lib/deprec/{cap/templates → templates}/mysql/database.yml.prod +0 -0
- data/lib/deprec/{cap/templates → templates}/mysql/database.yml.stage +0 -0
- data/lib/deprec/{cap/templates → templates}/mysql/my.cnf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/mysql/sphinx.conf.prod +0 -0
- data/lib/deprec/{cap/templates → templates}/mysql/sphinx.conf.stage +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/README +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/apache_vhost.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/cgi.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/check_linux_free_memory.pl +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/check_mongrel_cluster.rb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/htpasswd.users +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/mrtg.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/nagios.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/nrpe.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/nrpe.xinetd.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/objects/commands.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/objects/contacts.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/objects/hosts.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/objects/localhost.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/objects/services.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/objects/timeperiods.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/resource.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/apache2.conf +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/cgi.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/check_linux_free_memory.pl +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/commands.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/contacts_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/extinfo_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/generic-host_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/generic-service_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/hostgroups_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/hosts/localhost_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/services_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/timeperiods_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/host_template.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/htpasswd.users +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/nagios.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/nrpe.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/resource.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/network/hostname.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/network/hosts.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/network/interfaces.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/network/resolv.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/logrotate.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/mime.types.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/nginx-init-script +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/nginx.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/nginx.logrotate.d +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/nothing.conf +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/rails_nginx_vhost.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/ntp/ntp.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/passenger/apache_vhost.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/passenger/logrotate.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/passenger/passenger.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/passenger/passenger.load.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/postfix/aliases.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/postfix/dynamicmaps.cf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/postfix/main.cf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/postfix/master.cf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/ssh/ssh_config.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/ssh/sshd_config.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/ssl/make-ssl-cert +0 -0
- data/lib/deprec/{cap/templates → templates}/ssl/ssl-cert-snakeoil.key +0 -0
- data/lib/deprec/{cap/templates → templates}/ssl/ssl-cert-snakeoil.pem +0 -0
- data/lib/deprec/{cap/templates → templates}/stunnel/stunnel.conf-client +0 -0
- data/lib/deprec/{cap/templates → templates}/stunnel/stunnel.conf-orig +0 -0
- data/lib/deprec/{cap/templates → templates}/stunnel/stunnel.conf-server +0 -0
- data/lib/deprec/{cap/templates → templates}/stunnel/stunnel4 +0 -0
- data/lib/deprec/{cap/templates → templates}/stunnel/syslog-server.pem +0 -0
- data/lib/deprec/{cap/templates → templates}/syslog/syslog.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/syslog/syslogd.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/syslog_ng/apache_syslog +0 -0
- data/lib/deprec/{cap/templates → templates}/syslog_ng/syslog-ng.conf-client +0 -0
- data/lib/deprec/{cap/templates → templates}/syslog_ng/syslog-ng.conf-orig +0 -0
- data/lib/deprec/{cap/templates → templates}/syslog_ng/syslog-ng.conf-server +0 -0
- data/lib/deprec/{cap/templates → templates}/xen/network-bridge-wrapper +0 -0
- data/lib/deprec/{cap/templates → templates}/xen/xend-config.sxp.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/xen/xend-init.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/xen/xendomains.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/xentools/15-disable-hwclock +0 -0
- data/lib/deprec/{cap/templates → templates}/xentools/40-setup-networking +0 -0
- data/lib/deprec/{cap/templates → templates}/xentools/xen-tools.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/xentools/xm.tmpl.erb +0 -0
- data/lib/deprec/version.rb +1 -1
- metadata +161 -162
- data/lib/deprec/cap/recipes/deprec.rb +0 -191
- data/lib/deprec/rake.rb +0 -12
- data/lib/deprec/rake/environments.rake +0 -9
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/deprec/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: deprec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 6
|
5
|
-
version: 3.1.0.
|
5
|
+
version: 3.1.0.rc4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Mike Bailey
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-16 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: deprec-core
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- bin/hosts.rb
|
58
58
|
- bin/depify
|
59
59
|
- docs/TODO.txt
|
60
|
+
- docs/old_cap_require_list.rb
|
60
61
|
- docs/README.rails
|
61
62
|
- docs/config_gen_explained.txt
|
62
63
|
- docs/old/deprec_banner.gif
|
@@ -72,167 +73,165 @@ files:
|
|
72
73
|
- docs/xen/traffic_monitoring_with_vnstat.txt
|
73
74
|
- docs/nagios.txt
|
74
75
|
- lib/deprec_minus_rails.rb
|
75
|
-
- lib/deprec/rake.rb
|
76
76
|
- lib/deprec/version.rb
|
77
|
-
- lib/deprec/
|
78
|
-
- lib/deprec/
|
79
|
-
- lib/deprec/
|
80
|
-
- lib/deprec/
|
81
|
-
- lib/deprec/
|
82
|
-
- lib/deprec/
|
83
|
-
- lib/deprec/
|
84
|
-
- lib/deprec/
|
85
|
-
- lib/deprec/
|
86
|
-
- lib/deprec/
|
87
|
-
- lib/deprec/
|
88
|
-
- lib/deprec/
|
89
|
-
- lib/deprec/
|
90
|
-
- lib/deprec/
|
91
|
-
- lib/deprec/
|
92
|
-
- lib/deprec/
|
93
|
-
- lib/deprec/
|
94
|
-
- lib/deprec/
|
95
|
-
- lib/deprec/
|
96
|
-
- lib/deprec/
|
97
|
-
- lib/deprec/
|
98
|
-
- lib/deprec/
|
99
|
-
- lib/deprec/
|
100
|
-
- lib/deprec/
|
101
|
-
- lib/deprec/
|
102
|
-
- lib/deprec/
|
103
|
-
- lib/deprec/
|
104
|
-
- lib/deprec/
|
105
|
-
- lib/deprec/
|
106
|
-
- lib/deprec/
|
107
|
-
- lib/deprec/
|
108
|
-
- lib/deprec/
|
109
|
-
- lib/deprec/
|
110
|
-
- lib/deprec/
|
111
|
-
- lib/deprec/
|
112
|
-
- lib/deprec/
|
113
|
-
- lib/deprec/
|
114
|
-
- lib/deprec/
|
115
|
-
- lib/deprec/
|
116
|
-
- lib/deprec/
|
117
|
-
- lib/deprec/
|
118
|
-
- lib/deprec/
|
119
|
-
- lib/deprec/
|
120
|
-
- lib/deprec/
|
121
|
-
- lib/deprec/
|
122
|
-
- lib/deprec/
|
123
|
-
- lib/deprec/
|
124
|
-
- lib/deprec/
|
125
|
-
- lib/deprec/
|
126
|
-
- lib/deprec/
|
127
|
-
- lib/deprec/
|
128
|
-
- lib/deprec/
|
129
|
-
- lib/deprec/
|
130
|
-
- lib/deprec/
|
131
|
-
- lib/deprec/
|
132
|
-
- lib/deprec/
|
133
|
-
- lib/deprec/
|
134
|
-
- lib/deprec/
|
135
|
-
- lib/deprec/
|
136
|
-
- lib/deprec/
|
137
|
-
- lib/deprec/
|
138
|
-
- lib/deprec/
|
139
|
-
- lib/deprec/
|
140
|
-
- lib/deprec/
|
141
|
-
- lib/deprec/
|
142
|
-
- lib/deprec/
|
143
|
-
- lib/deprec/
|
144
|
-
- lib/deprec/
|
145
|
-
- lib/deprec/
|
146
|
-
- lib/deprec/
|
147
|
-
- lib/deprec/
|
148
|
-
- lib/deprec/
|
149
|
-
- lib/deprec/
|
150
|
-
- lib/deprec/
|
151
|
-
- lib/deprec/
|
152
|
-
- lib/deprec/
|
153
|
-
- lib/deprec/
|
154
|
-
- lib/deprec/
|
155
|
-
- lib/deprec/
|
156
|
-
- lib/deprec/
|
157
|
-
- lib/deprec/
|
158
|
-
- lib/deprec/
|
159
|
-
- lib/deprec/
|
160
|
-
- lib/deprec/
|
161
|
-
- lib/deprec/
|
162
|
-
- lib/deprec/
|
163
|
-
- lib/deprec/
|
164
|
-
- lib/deprec/
|
165
|
-
- lib/deprec/
|
166
|
-
- lib/deprec/
|
167
|
-
- lib/deprec/
|
168
|
-
- lib/deprec/
|
169
|
-
- lib/deprec/
|
170
|
-
- lib/deprec/
|
171
|
-
- lib/deprec/
|
172
|
-
- lib/deprec/
|
173
|
-
- lib/deprec/
|
174
|
-
- lib/deprec/
|
175
|
-
- lib/deprec/
|
176
|
-
- lib/deprec/
|
177
|
-
- lib/deprec/
|
178
|
-
- lib/deprec/
|
179
|
-
- lib/deprec/
|
180
|
-
- lib/deprec/
|
181
|
-
- lib/deprec/
|
182
|
-
- lib/deprec/
|
183
|
-
- lib/deprec/
|
184
|
-
- lib/deprec/
|
185
|
-
- lib/deprec/
|
186
|
-
- lib/deprec/
|
187
|
-
- lib/deprec/
|
188
|
-
- lib/deprec/
|
189
|
-
- lib/deprec/
|
190
|
-
- lib/deprec/
|
191
|
-
- lib/deprec/
|
192
|
-
- lib/deprec/
|
193
|
-
- lib/deprec/
|
194
|
-
- lib/deprec/
|
195
|
-
- lib/deprec/
|
196
|
-
- lib/deprec/
|
197
|
-
- lib/deprec/
|
198
|
-
- lib/deprec/
|
199
|
-
- lib/deprec/
|
200
|
-
- lib/deprec/
|
201
|
-
- lib/deprec/
|
202
|
-
- lib/deprec/
|
203
|
-
- lib/deprec/
|
204
|
-
- lib/deprec/
|
205
|
-
- lib/deprec/
|
206
|
-
- lib/deprec/
|
207
|
-
- lib/deprec/
|
208
|
-
- lib/deprec/
|
209
|
-
- lib/deprec/
|
210
|
-
- lib/deprec/
|
211
|
-
- lib/deprec/
|
212
|
-
- lib/deprec/
|
213
|
-
- lib/deprec/
|
214
|
-
- lib/deprec/
|
215
|
-
- lib/deprec/
|
216
|
-
- lib/deprec/
|
217
|
-
- lib/deprec/
|
218
|
-
- lib/deprec/
|
219
|
-
- lib/deprec/
|
220
|
-
- lib/deprec/
|
221
|
-
- lib/deprec/
|
222
|
-
- lib/deprec/
|
223
|
-
- lib/deprec/
|
224
|
-
- lib/deprec/
|
225
|
-
- lib/deprec/
|
226
|
-
- lib/deprec/
|
227
|
-
- lib/deprec/
|
228
|
-
- lib/deprec/
|
229
|
-
- lib/deprec/
|
230
|
-
- lib/deprec/
|
231
|
-
- lib/deprec/
|
232
|
-
- lib/deprec/
|
233
|
-
- lib/deprec/
|
234
|
-
- lib/deprec/
|
235
|
-
- lib/deprec/rake/environments.rake
|
77
|
+
- lib/deprec/recipes/deprecated.rb
|
78
|
+
- lib/deprec/recipes/example.rb
|
79
|
+
- lib/deprec/recipes/collectd.rb
|
80
|
+
- lib/deprec/recipes/nrpe.rb
|
81
|
+
- lib/deprec/recipes/db.rake
|
82
|
+
- lib/deprec/recipes/ntp.rb
|
83
|
+
- lib/deprec/recipes/ssh.rb
|
84
|
+
- lib/deprec/recipes/bash.rb
|
85
|
+
- lib/deprec/recipes/nginx.rb
|
86
|
+
- lib/deprec/recipes/logrotate.rb
|
87
|
+
- lib/deprec/recipes/lvm.rb
|
88
|
+
- lib/deprec/recipes/syslog.rb
|
89
|
+
- lib/deprec/recipes/rack.rb
|
90
|
+
- lib/deprec/recipes/utils.rb
|
91
|
+
- lib/deprec/recipes/php.rb
|
92
|
+
- lib/deprec/recipes/canonical.rb
|
93
|
+
- lib/deprec/recipes/mongrel.rb
|
94
|
+
- lib/deprec/recipes/heartbeat.rb
|
95
|
+
- lib/deprec/recipes/passenger.rb
|
96
|
+
- lib/deprec/recipes/nagios3.rb
|
97
|
+
- lib/deprec/recipes/sqlite.rb
|
98
|
+
- lib/deprec/recipes/deploy.rb
|
99
|
+
- lib/deprec/recipes/rails.rb
|
100
|
+
- lib/deprec/recipes/xen.rb
|
101
|
+
- lib/deprec/recipes/ubuntu.rb
|
102
|
+
- lib/deprec/recipes/ree.rb
|
103
|
+
- lib/deprec/recipes/syslog_ng.rb
|
104
|
+
- lib/deprec/recipes/rubygems.rb
|
105
|
+
- lib/deprec/recipes/mysql.rb
|
106
|
+
- lib/deprec/recipes/ec2.rb
|
107
|
+
- lib/deprec/recipes/monit.rb
|
108
|
+
- lib/deprec/recipes/ssl.rb
|
109
|
+
- lib/deprec/recipes/postgresql.rb
|
110
|
+
- lib/deprec/recipes/mri.rb
|
111
|
+
- lib/deprec/recipes/git.rb
|
112
|
+
- lib/deprec/recipes/nagios.rb
|
113
|
+
- lib/deprec/recipes/apache.rb
|
114
|
+
- lib/deprec/recipes/users.rb
|
115
|
+
- lib/deprec/recipes/postfix.rb
|
116
|
+
- lib/deprec/recipes/haproxy.rb
|
117
|
+
- lib/deprec/recipes/xentools.rb
|
118
|
+
- lib/deprec/recipes/aoe.rb
|
119
|
+
- lib/deprec/recipes/stunnel.rb
|
120
|
+
- lib/deprec/recipes/network.rb
|
121
|
+
- lib/deprec/templates/logrotate/logrotate.conf.erb
|
122
|
+
- lib/deprec/templates/postfix/dynamicmaps.cf.erb
|
123
|
+
- lib/deprec/templates/postfix/master.cf.erb
|
124
|
+
- lib/deprec/templates/postfix/aliases.erb
|
125
|
+
- lib/deprec/templates/postfix/main.cf.erb
|
126
|
+
- lib/deprec/templates/mongrel/mongrel_cluster-init-script
|
127
|
+
- lib/deprec/templates/mongrel/logrotate.conf.erb
|
128
|
+
- lib/deprec/templates/mongrel/apache_vhost.conf.erb
|
129
|
+
- lib/deprec/templates/mongrel/mongrel_cluster.yml.erb
|
130
|
+
- lib/deprec/templates/mongrel/monit.conf.erb
|
131
|
+
- lib/deprec/templates/mongrel/nginx_vhost.conf.erb
|
132
|
+
- lib/deprec/templates/passenger/logrotate.conf.erb
|
133
|
+
- lib/deprec/templates/passenger/passenger.conf.erb
|
134
|
+
- lib/deprec/templates/passenger/apache_vhost.erb
|
135
|
+
- lib/deprec/templates/passenger/passenger.load.erb
|
136
|
+
- lib/deprec/templates/nginx/logrotate.conf.erb
|
137
|
+
- lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb
|
138
|
+
- lib/deprec/templates/nginx/nginx.logrotate.d
|
139
|
+
- lib/deprec/templates/nginx/nothing.conf
|
140
|
+
- lib/deprec/templates/nginx/nginx-init-script
|
141
|
+
- lib/deprec/templates/nginx/nginx.conf.erb
|
142
|
+
- lib/deprec/templates/nginx/mime.types.erb
|
143
|
+
- lib/deprec/templates/network/hosts.erb
|
144
|
+
- lib/deprec/templates/network/interfaces.erb
|
145
|
+
- lib/deprec/templates/network/resolv.conf.erb
|
146
|
+
- lib/deprec/templates/network/hostname.erb
|
147
|
+
- lib/deprec/templates/monit/monitrc.erb
|
148
|
+
- lib/deprec/templates/monit/nothing.monitrc
|
149
|
+
- lib/deprec/templates/monit/monit-init-script
|
150
|
+
- lib/deprec/templates/ssl/make-ssl-cert
|
151
|
+
- lib/deprec/templates/ssl/ssl-cert-snakeoil.pem
|
152
|
+
- lib/deprec/templates/ssl/ssl-cert-snakeoil.key
|
153
|
+
- lib/deprec/templates/heartbeat/haresources.erb
|
154
|
+
- lib/deprec/templates/heartbeat/ha.cf.erb
|
155
|
+
- lib/deprec/templates/heartbeat/authkeys.erb
|
156
|
+
- lib/deprec/templates/haproxy/haproxy-init.d
|
157
|
+
- lib/deprec/templates/haproxy/haproxy.cfg.erb
|
158
|
+
- lib/deprec/templates/ntp/ntp.conf.erb
|
159
|
+
- lib/deprec/templates/nagios.old/README
|
160
|
+
- lib/deprec/templates/nagios.old/cgi.cfg.erb
|
161
|
+
- lib/deprec/templates/nagios.old/resource.cfg.erb
|
162
|
+
- lib/deprec/templates/nagios.old/htpasswd.users
|
163
|
+
- lib/deprec/templates/nagios.old/nagios.cfg.erb
|
164
|
+
- lib/deprec/templates/nagios.old/check_mongrel_cluster.rb
|
165
|
+
- lib/deprec/templates/nagios.old/nrpe.cfg.erb
|
166
|
+
- lib/deprec/templates/nagios.old/check_linux_free_memory.pl
|
167
|
+
- lib/deprec/templates/nagios.old/objects/timeperiods.cfg.erb
|
168
|
+
- lib/deprec/templates/nagios.old/objects/services.cfg.erb
|
169
|
+
- lib/deprec/templates/nagios.old/objects/localhost.cfg.erb
|
170
|
+
- lib/deprec/templates/nagios.old/objects/commands.cfg.erb
|
171
|
+
- lib/deprec/templates/nagios.old/objects/hosts.cfg.erb
|
172
|
+
- lib/deprec/templates/nagios.old/objects/contacts.cfg.erb
|
173
|
+
- lib/deprec/templates/nagios.old/apache_vhost.erb
|
174
|
+
- lib/deprec/templates/nagios.old/mrtg.cfg
|
175
|
+
- lib/deprec/templates/nagios.old/nrpe.xinetd.erb
|
176
|
+
- lib/deprec/templates/syslog/syslog.conf.erb
|
177
|
+
- lib/deprec/templates/syslog/syslogd.erb
|
178
|
+
- lib/deprec/templates/stunnel/stunnel.conf-client
|
179
|
+
- lib/deprec/templates/stunnel/syslog-server.pem
|
180
|
+
- lib/deprec/templates/stunnel/stunnel.conf-orig
|
181
|
+
- lib/deprec/templates/stunnel/stunnel.conf-server
|
182
|
+
- lib/deprec/templates/stunnel/stunnel4
|
183
|
+
- lib/deprec/templates/xentools/xm.tmpl.erb
|
184
|
+
- lib/deprec/templates/xentools/15-disable-hwclock
|
185
|
+
- lib/deprec/templates/xentools/40-setup-networking
|
186
|
+
- lib/deprec/templates/xentools/xen-tools.conf.erb
|
187
|
+
- lib/deprec/templates/aoe/fence_aoemask
|
188
|
+
- lib/deprec/templates/aoe/aoe-init
|
189
|
+
- lib/deprec/templates/apache/status.conf.erb
|
190
|
+
- lib/deprec/templates/apache/ports.conf.erb
|
191
|
+
- lib/deprec/templates/apache/apache2.conf.erb
|
192
|
+
- lib/deprec/templates/apache/namevirtualhosts.conf
|
193
|
+
- lib/deprec/templates/apache/CHANGES.txt
|
194
|
+
- lib/deprec/templates/apache/vhost.erb
|
195
|
+
- lib/deprec/templates/apache/default.erb
|
196
|
+
- lib/deprec/templates/deprec/caprc.erb
|
197
|
+
- lib/deprec/templates/collectd/collectd.conf.erb
|
198
|
+
- lib/deprec/templates/collectd/collectd-init.d
|
199
|
+
- lib/deprec/templates/xen/network-bridge-wrapper
|
200
|
+
- lib/deprec/templates/xen/xend-init.erb
|
201
|
+
- lib/deprec/templates/xen/xend-config.sxp.erb
|
202
|
+
- lib/deprec/templates/xen/xendomains.erb
|
203
|
+
- lib/deprec/templates/syslog_ng/syslog-ng.conf-orig
|
204
|
+
- lib/deprec/templates/syslog_ng/apache_syslog
|
205
|
+
- lib/deprec/templates/syslog_ng/syslog-ng.conf-server
|
206
|
+
- lib/deprec/templates/syslog_ng/syslog-ng.conf-client
|
207
|
+
- lib/deprec/templates/ssh/sshd_config.erb
|
208
|
+
- lib/deprec/templates/ssh/ssh_config.erb
|
209
|
+
- lib/deprec/templates/nagios/nrpe.cfg
|
210
|
+
- lib/deprec/templates/nagios/resource.cfg
|
211
|
+
- lib/deprec/templates/nagios/host_template.erb
|
212
|
+
- lib/deprec/templates/nagios/conf.d/timeperiods_nagios2.cfg
|
213
|
+
- lib/deprec/templates/nagios/conf.d/extinfo_nagios2.cfg
|
214
|
+
- lib/deprec/templates/nagios/conf.d/contacts_nagios2.cfg
|
215
|
+
- lib/deprec/templates/nagios/conf.d/services_nagios2.cfg
|
216
|
+
- lib/deprec/templates/nagios/conf.d/hostgroups_nagios2.cfg
|
217
|
+
- lib/deprec/templates/nagios/conf.d/generic-host_nagios2.cfg
|
218
|
+
- lib/deprec/templates/nagios/conf.d/hosts/localhost_nagios2.cfg
|
219
|
+
- lib/deprec/templates/nagios/conf.d/generic-service_nagios2.cfg
|
220
|
+
- lib/deprec/templates/nagios/htpasswd.users
|
221
|
+
- lib/deprec/templates/nagios/commands.cfg
|
222
|
+
- lib/deprec/templates/nagios/nagios.cfg
|
223
|
+
- lib/deprec/templates/nagios/cgi.cfg
|
224
|
+
- lib/deprec/templates/nagios/check_linux_free_memory.pl
|
225
|
+
- lib/deprec/templates/nagios/apache2.conf
|
226
|
+
- lib/deprec/templates/mysql/create_databases.sql
|
227
|
+
- lib/deprec/templates/mysql/sphinx.conf.stage
|
228
|
+
- lib/deprec/templates/mysql/database.yml.prod
|
229
|
+
- lib/deprec/templates/mysql/database.yml.stage
|
230
|
+
- lib/deprec/templates/mysql/my.cnf.erb
|
231
|
+
- lib/deprec/templates/mysql/sphinx.conf.prod
|
232
|
+
- lib/deprec/templates/bash/bash_global
|
233
|
+
- lib/deprec/callbacks/deploy.rb
|
234
|
+
- lib/deprec/callbacks/asset_pipeline.rb
|
236
235
|
- lib/deprec.rb
|
237
236
|
- CHANGELOG
|
238
237
|
- COPYING
|
@@ -1,191 +0,0 @@
|
|
1
|
-
# Copyright 2006-2008 by Mike Bailey. All rights reserved.
|
2
|
-
Capistrano::Configuration.instance(:must_exist).load do
|
3
|
-
|
4
|
-
# Set the value if not already set
|
5
|
-
# This method is accessible to all recipe files
|
6
|
-
# Defined and used by capistrano/deploy tasks
|
7
|
-
def _cset(name, *args, &block)
|
8
|
-
unless exists?(name)
|
9
|
-
set(name, *args, &block)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
# deprecated
|
14
|
-
alias :default :_cset
|
15
|
-
|
16
|
-
_cset :rake, 'rake'
|
17
|
-
|
18
|
-
# Deprec checks here for local versions of config templates before it's own
|
19
|
-
set :local_template_dir, File.join('config','templates')
|
20
|
-
|
21
|
-
# The following two Constants contain details of the configuration
|
22
|
-
# files used by each service. They're used when generating config
|
23
|
-
# files from templates and when configs files are pushed out to servers.
|
24
|
-
#
|
25
|
-
# They are populated by the recipe file for each service
|
26
|
-
#
|
27
|
-
SYSTEM_CONFIG_FILES = {} # e.g. httpd.conf
|
28
|
-
PROJECT_CONFIG_FILES = {} # e.g. projectname-httpd-vhost.conf
|
29
|
-
|
30
|
-
# For each service, the details of the file to download and options
|
31
|
-
# to configure, build and install the service
|
32
|
-
SRC_PACKAGES = {} unless defined?(SRC_PACKAGES)
|
33
|
-
|
34
|
-
# deprec defines some generic recipes for common services
|
35
|
-
# including ruby interpreter, web, app and database servers
|
36
|
-
#
|
37
|
-
# They default to my current favourites which you can over ride
|
38
|
-
#
|
39
|
-
# Service options
|
40
|
-
CHOICES_RUBY_VM = [:mri, :ree]
|
41
|
-
CHOICES_WEBSERVER = [:apache, :none] # :nginx not recipes out of date
|
42
|
-
CHOICES_APPSERVER = [:passenger, :none] # any colour you like guys
|
43
|
-
CHOICES_DATABASE = [:mysql, :postgresql, :sqlite, :none]
|
44
|
-
#
|
45
|
-
# Service defaults
|
46
|
-
set :ruby_vm_type, :mri
|
47
|
-
set :web_server_type, :apache
|
48
|
-
set :app_server_type, :passenger
|
49
|
-
set :db_server_type, :mysql
|
50
|
-
|
51
|
-
# Prompt user for missing values if not supplied
|
52
|
-
set(:application) do
|
53
|
-
Capistrano::CLI.ui.ask "Enter name of project(no spaces)" do |q|
|
54
|
-
q.validate = /^[0-9a-z_]*$/
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
set(:domain) do
|
59
|
-
Capistrano::CLI.ui.ask "Enter domain name for project" do |q|
|
60
|
-
q.validate = /^[0-9a-z_\.]*$/
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
set(:repository) do
|
65
|
-
Capistrano::CLI.ui.ask "Enter repository URL for project" do |q|
|
66
|
-
# q.validate = //
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
# some tasks run commands requiring special user privileges on remote servers
|
71
|
-
# these tasks will run the commands with:
|
72
|
-
# :invoke_command "command", :via => run_method
|
73
|
-
# override this value if sudo is not an option
|
74
|
-
# in that case, your use will need the correct privileges
|
75
|
-
set :run_method, :sudo
|
76
|
-
|
77
|
-
set(:backup_dir) { '/var/backups'}
|
78
|
-
|
79
|
-
# XXX rails deploy stuff
|
80
|
-
set :apps_root, '/srv' # parent dir for apps
|
81
|
-
set(:deploy_to) { File.join(apps_root, application) } # dir for current app
|
82
|
-
set(:current_path) { File.join(deploy_to, "current") }
|
83
|
-
set(:shared_path) { File.join(deploy_to, "shared") }
|
84
|
-
|
85
|
-
# XXX more rails deploy stuff?
|
86
|
-
|
87
|
-
set :user, ENV['USER'] # user who is deploying
|
88
|
-
set :group, 'deploy' # deployment group
|
89
|
-
set(:group_src) { group } # group ownership for src dir
|
90
|
-
set :src_dir, '/usr/local/src' # 3rd party src on servers lives here
|
91
|
-
set(:web_server_aliases) { domain.match(/^www/) ? [] : ["www.#{domain}"] }
|
92
|
-
|
93
|
-
# XXX for some reason this is causing "before deprec:rails:install" to be executed twice
|
94
|
-
on :load, 'deprec:connect_canonical_tasks'
|
95
|
-
|
96
|
-
# It can be useful to know the user running this command
|
97
|
-
# even when USER is set to someone else. Sorry windows!
|
98
|
-
set :current_user, `whoami`.chomp
|
99
|
-
|
100
|
-
namespace :deprec do
|
101
|
-
|
102
|
-
task :connect_canonical_tasks do
|
103
|
-
# link application specific recipes into canonical task names
|
104
|
-
# e.g. deprec:web:restart => deprec:nginx:restart
|
105
|
-
|
106
|
-
|
107
|
-
namespaces_to_connect = { :web => :web_server_type,
|
108
|
-
:app => :app_server_type,
|
109
|
-
:db => :db_server_type,
|
110
|
-
:ruby => :ruby_vm_type
|
111
|
-
}
|
112
|
-
metaclass = class << self; self; end # XXX unnecessary?
|
113
|
-
namespaces_to_connect.each do |server, choice|
|
114
|
-
server_type = send(choice).to_sym
|
115
|
-
if server_type != :none
|
116
|
-
metaclass.send(:define_method, server) { namespaces[server] } # XXX unnecessary?
|
117
|
-
namespaces[server] = deprec.send(server_type)
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
task :dump do
|
123
|
-
require 'yaml'
|
124
|
-
y variables
|
125
|
-
end
|
126
|
-
|
127
|
-
task :setup_src_dir do
|
128
|
-
deprec2.groupadd(group_src)
|
129
|
-
deprec2.add_user_to_group(user, group_src)
|
130
|
-
deprec2.create_src_dir
|
131
|
-
end
|
132
|
-
|
133
|
-
# Download all packages used by deprec to your local host.
|
134
|
-
# You can then push them to /usr/local/src on target hosts
|
135
|
-
# to save time and bandwidth rather than repeatedly downloading
|
136
|
-
# from the distribution sites.
|
137
|
-
task :update_src do
|
138
|
-
SRC_PACKAGES.each{|key, src_package|
|
139
|
-
current_dir = Dir.pwd
|
140
|
-
system "cd src/ && test -f #{src_package[:filename]} || wget --quiet --timestamping #{src_package[:url]}"
|
141
|
-
system "cd #{current_dir}"
|
142
|
-
}
|
143
|
-
end
|
144
|
-
|
145
|
-
# todo
|
146
|
-
#
|
147
|
-
# Copy files from src/ to /usr/local/src/ on remote hosts
|
148
|
-
task :push_src do
|
149
|
-
SRC_PACKAGES.each do |key, src_package|
|
150
|
-
deprec2.set_package_defaults(src_package)
|
151
|
-
file = File.join('src', src_package[:filename])
|
152
|
-
if File.exists?(file)
|
153
|
-
std.su_put(File.read(file), "#{src_dir}/#{src_package[:filename]}", '/tmp/')
|
154
|
-
end
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
task :list_src do
|
159
|
-
# XXX ugly line - look away
|
160
|
-
max_key_size = SRC_PACKAGES.keys.max{|a,b| a.to_s.size <=> b.to_s.size}.to_s.size
|
161
|
-
SRC_PACKAGES.each{|key, src_package|
|
162
|
-
deprec2.set_package_defaults(src_package)
|
163
|
-
puts "#{key}#{' '*(max_key_size+1-key.to_s.size)}: #{src_package[:url]}"
|
164
|
-
}
|
165
|
-
end
|
166
|
-
|
167
|
-
task :find_src do
|
168
|
-
# XXX ugly line - look away
|
169
|
-
max_key_size = SRC_PACKAGES.keys.max{|a,b| a.to_s.size <=> b.to_s.size}.to_s.size
|
170
|
-
SRC_PACKAGES.each{|key, src_package|
|
171
|
-
deprec2.set_package_defaults(src_package)
|
172
|
-
puts "#{key}#{' '*(max_key_size+1-key.to_s.size)}: #{src_package[:url]}"
|
173
|
-
puts `find . -name #{src_package[:filename]}`
|
174
|
-
puts
|
175
|
-
}
|
176
|
-
end
|
177
|
-
|
178
|
-
task :recover_src do
|
179
|
-
# XXX ugly line - look away
|
180
|
-
max_key_size = SRC_PACKAGES.keys.max{|a,b| a.to_s.size <=> b.to_s.size}.to_s.size
|
181
|
-
SRC_PACKAGES.each{|key, src_package|
|
182
|
-
puts "#{key}#{' '*(max_key_size+1-key.to_s.size)}: #{src_package[:url]}"
|
183
|
-
file = `find . -name #{src_package[:filename]}`.split[0]
|
184
|
-
`cp #{file} src/` if file
|
185
|
-
puts
|
186
|
-
}
|
187
|
-
end
|
188
|
-
|
189
|
-
end
|
190
|
-
|
191
|
-
end
|