isaac-deprec 1.99.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. data/CHANGELOG +226 -0
  2. data/COPYING +19 -0
  3. data/LICENSE +339 -0
  4. data/README +138 -0
  5. data/THANKS +5 -0
  6. data/bin/depify +133 -0
  7. data/docs/ANNOUNCE.deprec2 +47 -0
  8. data/docs/README.install +88 -0
  9. data/docs/README.nagios +22 -0
  10. data/docs/README.rails +20 -0
  11. data/docs/README.svn +31 -0
  12. data/docs/ROADMAP.txt +74 -0
  13. data/docs/deprec-1.x/deprec-1.x.quickstart +50 -0
  14. data/docs/deprec-1.x/notes.txt +12 -0
  15. data/docs/deprec_banner.gif +0 -0
  16. data/docs/offline_installation.txt +16 -0
  17. data/docs/windows_linux.txt +350 -0
  18. data/docs/xen/plan.txt +5 -0
  19. data/docs/xen/traffic_monitoring_with_vnstat.txt +95 -0
  20. data/docs/xen/xen-tools-notes.txt +31 -0
  21. data/docs/xen/xen_on_hardy.txt +39 -0
  22. data/lib/deprec/capistrano_extensions.rb +435 -0
  23. data/lib/deprec/recipes/aoe.rb +79 -0
  24. data/lib/deprec/recipes/apache.rb +179 -0
  25. data/lib/deprec/recipes/apt_mirror.rb +99 -0
  26. data/lib/deprec/recipes/ar_sendmail.rb +67 -0
  27. data/lib/deprec/recipes/canonical.rb +57 -0
  28. data/lib/deprec/recipes/deprec.rb +188 -0
  29. data/lib/deprec/recipes/deprecated.rb +71 -0
  30. data/lib/deprec/recipes/example.rb +115 -0
  31. data/lib/deprec/recipes/git.rb +97 -0
  32. data/lib/deprec/recipes/gitosis.rb +48 -0
  33. data/lib/deprec/recipes/heartbeat.rb +138 -0
  34. data/lib/deprec/recipes/logrotate.rb +54 -0
  35. data/lib/deprec/recipes/lvm.rb +20 -0
  36. data/lib/deprec/recipes/memcache.rb +49 -0
  37. data/lib/deprec/recipes/mongrel.rb +219 -0
  38. data/lib/deprec/recipes/monit.rb +135 -0
  39. data/lib/deprec/recipes/mysql.rb +115 -0
  40. data/lib/deprec/recipes/nagios.rb +305 -0
  41. data/lib/deprec/recipes/network.rb +93 -0
  42. data/lib/deprec/recipes/nginx.rb +144 -0
  43. data/lib/deprec/recipes/ntp.rb +103 -0
  44. data/lib/deprec/recipes/passenger.rb +114 -0
  45. data/lib/deprec/recipes/php.rb +91 -0
  46. data/lib/deprec/recipes/postfix.rb +115 -0
  47. data/lib/deprec/recipes/rails.rb +282 -0
  48. data/lib/deprec/recipes/ree.rb +33 -0
  49. data/lib/deprec/recipes/ruby.rb +65 -0
  50. data/lib/deprec/recipes/sphinx.rb +86 -0
  51. data/lib/deprec/recipes/ssh.rb +93 -0
  52. data/lib/deprec/recipes/svn.rb +171 -0
  53. data/lib/deprec/recipes/trac.rb +277 -0
  54. data/lib/deprec/recipes/ubuntu.rb +20 -0
  55. data/lib/deprec/recipes/users.rb +90 -0
  56. data/lib/deprec/recipes/utils.rb +39 -0
  57. data/lib/deprec/recipes/vnstat.rb +85 -0
  58. data/lib/deprec/recipes/wordpress.rb +99 -0
  59. data/lib/deprec/recipes/xen.rb +269 -0
  60. data/lib/deprec/recipes.rb +40 -0
  61. data/lib/deprec/templates/aoe/aoe-init +55 -0
  62. data/lib/deprec/templates/aoe/fence_aoemask +351 -0
  63. data/lib/deprec/templates/apache/httpd-vhost-app.conf.erb +144 -0
  64. data/lib/deprec/templates/apache/httpd.conf +465 -0
  65. data/lib/deprec/templates/apache/index.html.erb +37 -0
  66. data/lib/deprec/templates/apache/master.css +72 -0
  67. data/lib/deprec/templates/apt/sources.list +18 -0
  68. data/lib/deprec/templates/apt_mirror/apt-mirror-cron +4 -0
  69. data/lib/deprec/templates/apt_mirror/mirror.list +33 -0
  70. data/lib/deprec/templates/ar_sendmail/logrotate.conf.erb +9 -0
  71. data/lib/deprec/templates/ar_sendmail/monit.conf.erb +5 -0
  72. data/lib/deprec/templates/deprec/caprc.erb +14 -0
  73. data/lib/deprec/templates/heartbeat/authkeys.erb +2 -0
  74. data/lib/deprec/templates/heartbeat/ha.cf.erb +15 -0
  75. data/lib/deprec/templates/heartbeat/haresources.erb +1 -0
  76. data/lib/deprec/templates/logrotate/logrotate.conf.erb +32 -0
  77. data/lib/deprec/templates/mongrel/logrotate.conf.erb +11 -0
  78. data/lib/deprec/templates/mongrel/mongrel_cluster-init-script +54 -0
  79. data/lib/deprec/templates/mongrel/mongrel_cluster.yml.erb +10 -0
  80. data/lib/deprec/templates/mongrel/monit.conf.erb +17 -0
  81. data/lib/deprec/templates/monit/monit-init-script +104 -0
  82. data/lib/deprec/templates/monit/monitrc.erb +227 -0
  83. data/lib/deprec/templates/monit/nothing +0 -0
  84. data/lib/deprec/templates/mysql/create_databases.sql +20 -0
  85. data/lib/deprec/templates/mysql/database.yml.prod +6 -0
  86. data/lib/deprec/templates/mysql/database.yml.stage +6 -0
  87. data/lib/deprec/templates/mysql/my.cnf.erb +140 -0
  88. data/lib/deprec/templates/mysql/sphinx.conf.prod +542 -0
  89. data/lib/deprec/templates/mysql/sphinx.conf.stage +542 -0
  90. data/lib/deprec/templates/nagios/cgi.cfg.erb +321 -0
  91. data/lib/deprec/templates/nagios/check_linux_free_memory.pl +118 -0
  92. data/lib/deprec/templates/nagios/check_mongrel_cluster.rb +82 -0
  93. data/lib/deprec/templates/nagios/commands.cfg.erb +240 -0
  94. data/lib/deprec/templates/nagios/contacts.cfg.erb +57 -0
  95. data/lib/deprec/templates/nagios/hosts.cfg.erb +143 -0
  96. data/lib/deprec/templates/nagios/htpasswd.users +1 -0
  97. data/lib/deprec/templates/nagios/localhost.cfg.erb +157 -0
  98. data/lib/deprec/templates/nagios/nagios.cfg.erb +1274 -0
  99. data/lib/deprec/templates/nagios/nagios_apache_vhost.conf.erb +45 -0
  100. data/lib/deprec/templates/nagios/nrpe.cfg.erb +210 -0
  101. data/lib/deprec/templates/nagios/nrpe.xinetd.erb +16 -0
  102. data/lib/deprec/templates/nagios/resource.cfg.erb +34 -0
  103. data/lib/deprec/templates/nagios/services.cfg.erb +79 -0
  104. data/lib/deprec/templates/nagios/templates.cfg.erb +9 -0
  105. data/lib/deprec/templates/nagios/timeperiods.cfg.erb +94 -0
  106. data/lib/deprec/templates/network/hostname.erb +1 -0
  107. data/lib/deprec/templates/network/hosts.erb +2 -0
  108. data/lib/deprec/templates/network/interfaces.erb +18 -0
  109. data/lib/deprec/templates/network/resolv.conf.erb +6 -0
  110. data/lib/deprec/templates/nginx/logrotate.conf.erb +13 -0
  111. data/lib/deprec/templates/nginx/mime.types.erb +70 -0
  112. data/lib/deprec/templates/nginx/nginx-init-script +62 -0
  113. data/lib/deprec/templates/nginx/nginx.conf.erb +125 -0
  114. data/lib/deprec/templates/nginx/nginx.logrotate.d +12 -0
  115. data/lib/deprec/templates/nginx/nothing.conf +1 -0
  116. data/lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb +41 -0
  117. data/lib/deprec/templates/ntp/ntp.conf.erb +42 -0
  118. data/lib/deprec/templates/passenger/apache_vhost.erb +10 -0
  119. data/lib/deprec/templates/passenger/passenger.erb +20 -0
  120. data/lib/deprec/templates/postfix/aliases.erb +3 -0
  121. data/lib/deprec/templates/postfix/dynamicmaps.cf.erb +8 -0
  122. data/lib/deprec/templates/postfix/main.cf.erb +36 -0
  123. data/lib/deprec/templates/postfix/master.cf.erb +77 -0
  124. data/lib/deprec/templates/sphinx/monit.conf.erb +5 -0
  125. data/lib/deprec/templates/ssh/ssh_config.erb +50 -0
  126. data/lib/deprec/templates/ssh/sshd_config.erb +78 -0
  127. data/lib/deprec/templates/subversion/svn.apache.vhost.erb +43 -0
  128. data/lib/deprec/templates/trac/apache_vhost.conf.erb +24 -0
  129. data/lib/deprec/templates/trac/nginx_vhost.conf.erb +26 -0
  130. data/lib/deprec/templates/trac/trac.ini.erb +169 -0
  131. data/lib/deprec/templates/trac/trac_deprec.png +0 -0
  132. data/lib/deprec/templates/trac/tracd-init.erb +43 -0
  133. data/lib/deprec/templates/trac/users.htdigest.erb +0 -0
  134. data/lib/deprec/templates/vnstat/config.php +57 -0
  135. data/lib/deprec/templates/wordpress/apache2_wordpress_vhost.conf.erb +31 -0
  136. data/lib/deprec/templates/wordpress/wp-config.php.erb +31 -0
  137. data/lib/deprec/templates/xen/15-disable-hwclock +40 -0
  138. data/lib/deprec/templates/xen/40-setup-networking +145 -0
  139. data/lib/deprec/templates/xen/network-bridge-wrapper +3 -0
  140. data/lib/deprec/templates/xen/xen-tools.conf.erb +220 -0
  141. data/lib/deprec/templates/xen/xend-config.sxp.erb +195 -0
  142. data/lib/deprec/templates/xen/xend-init.erb +57 -0
  143. data/lib/deprec/templates/xen/xendomains.erb +137 -0
  144. data/lib/deprec/templates/xen/xm.tmpl.erb +85 -0
  145. data/lib/deprec.rb +8 -0
  146. data/lib/deprec_cmd_completion.sh +26 -0
  147. data/lib/vmbuilder_plugins/all.rb +20 -0
  148. data/lib/vmbuilder_plugins/apt.rb +93 -0
  149. data/lib/vmbuilder_plugins/emerge.rb +76 -0
  150. data/lib/vmbuilder_plugins/gem.rb +90 -0
  151. data/lib/vmbuilder_plugins/std.rb +203 -0
  152. metadata +241 -0
@@ -0,0 +1,465 @@
1
+ #
2
+ # This is the main Apache HTTP server configuration file. It contains the
3
+ # configuration directives that give the server its instructions.
4
+ # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
5
+ # In particular, see
6
+ # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
7
+ # for a discussion of each configuration directive.
8
+ #
9
+ # Do NOT simply read the instructions in here without understanding
10
+ # what they do. They're here only as hints or reminders. If you are unsure
11
+ # consult the online docs. You have been warned.
12
+ #
13
+ # Configuration and logfile names: If the filenames you specify for many
14
+ # of the server's control files begin with "/" (or "drive:/" for Win32), the
15
+ # server will use that explicit path. If the filenames do *not* begin
16
+ # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
17
+ # with ServerRoot set to "/usr/local/apache2" will be interpreted by the
18
+ # server as "/usr/local/apache2/logs/foo.log".
19
+
20
+ #
21
+ # ServerRoot: The top of the directory tree under which the server's
22
+ # configuration, error, and log files are kept.
23
+ #
24
+ # Do not add a slash at the end of the directory path. If you point
25
+ # ServerRoot at a non-local disk, be sure to point the LockFile directive
26
+ # at a local disk. If you wish to share the same ServerRoot for multiple
27
+ # httpd daemons, you will need to change at least LockFile and PidFile.
28
+ #
29
+ ServerRoot "/usr/local/apache2"
30
+
31
+ #
32
+ # Listen: Allows you to bind Apache to specific IP addresses and/or
33
+ # ports, instead of the default. See also the <VirtualHost>
34
+ # directive.
35
+ #
36
+ # Change this to Listen on specific IP addresses as shown below to
37
+ # prevent Apache from glomming onto all bound IP addresses.
38
+ #
39
+ #Listen 12.34.56.78:80
40
+ Listen 80
41
+
42
+ #
43
+ # Dynamic Shared Object (DSO) Support
44
+ #
45
+ # To be able to use the functionality of a module which was built as a DSO you
46
+ # have to place corresponding `LoadModule' lines at this location so the
47
+ # directives contained in it are actually available _before_ they are used.
48
+ # Statically compiled modules (those listed by `httpd -l') do not need
49
+ # to be loaded here.
50
+ #
51
+ # Example:
52
+ # LoadModule foo_module modules/mod_foo.so
53
+ #
54
+ LoadModule authn_file_module modules/mod_authn_file.so
55
+ LoadModule authn_dbm_module modules/mod_authn_dbm.so
56
+ LoadModule authn_anon_module modules/mod_authn_anon.so
57
+ LoadModule authn_dbd_module modules/mod_authn_dbd.so
58
+ LoadModule authn_default_module modules/mod_authn_default.so
59
+ LoadModule authz_host_module modules/mod_authz_host.so
60
+ LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
61
+ LoadModule authz_user_module modules/mod_authz_user.so
62
+ LoadModule authz_dbm_module modules/mod_authz_dbm.so
63
+ LoadModule authz_owner_module modules/mod_authz_owner.so
64
+ LoadModule authz_default_module modules/mod_authz_default.so
65
+ LoadModule auth_basic_module modules/mod_auth_basic.so
66
+ LoadModule auth_digest_module modules/mod_auth_digest.so
67
+ LoadModule cache_module modules/mod_cache.so
68
+ LoadModule dbd_module modules/mod_dbd.so
69
+ LoadModule dumpio_module modules/mod_dumpio.so
70
+ LoadModule ext_filter_module modules/mod_ext_filter.so
71
+ LoadModule include_module modules/mod_include.so
72
+ LoadModule filter_module modules/mod_filter.so
73
+ LoadModule deflate_module modules/mod_deflate.so
74
+ LoadModule log_config_module modules/mod_log_config.so
75
+ LoadModule log_forensic_module modules/mod_log_forensic.so
76
+ LoadModule logio_module modules/mod_logio.so
77
+ LoadModule env_module modules/mod_env.so
78
+ LoadModule mime_magic_module modules/mod_mime_magic.so
79
+ LoadModule cern_meta_module modules/mod_cern_meta.so
80
+ LoadModule expires_module modules/mod_expires.so
81
+ LoadModule headers_module modules/mod_headers.so
82
+ LoadModule ident_module modules/mod_ident.so
83
+ LoadModule usertrack_module modules/mod_usertrack.so
84
+ LoadModule unique_id_module modules/mod_unique_id.so
85
+ LoadModule setenvif_module modules/mod_setenvif.so
86
+ LoadModule version_module modules/mod_version.so
87
+ LoadModule proxy_module modules/mod_proxy.so
88
+ LoadModule proxy_connect_module modules/mod_proxy_connect.so
89
+ LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
90
+ LoadModule proxy_http_module modules/mod_proxy_http.so
91
+ LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
92
+ LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
93
+ LoadModule ssl_module modules/mod_ssl.so
94
+ LoadModule mime_module modules/mod_mime.so
95
+ LoadModule dav_module modules/mod_dav.so
96
+ LoadModule status_module modules/mod_status.so
97
+ LoadModule autoindex_module modules/mod_autoindex.so
98
+ LoadModule asis_module modules/mod_asis.so
99
+ LoadModule info_module modules/mod_info.so
100
+ LoadModule cgi_module modules/mod_cgi.so
101
+ LoadModule dav_fs_module modules/mod_dav_fs.so
102
+ LoadModule vhost_alias_module modules/mod_vhost_alias.so
103
+ LoadModule negotiation_module modules/mod_negotiation.so
104
+ LoadModule dir_module modules/mod_dir.so
105
+ LoadModule imagemap_module modules/mod_imagemap.so
106
+ LoadModule actions_module modules/mod_actions.so
107
+ LoadModule speling_module modules/mod_speling.so
108
+ LoadModule userdir_module modules/mod_userdir.so
109
+ LoadModule alias_module modules/mod_alias.so
110
+ LoadModule rewrite_module modules/mod_rewrite.so
111
+
112
+ <IfModule !mpm_netware_module>
113
+ #
114
+ # If you wish httpd to run as a different user or group, you must run
115
+ # httpd as root initially and it will switch.
116
+ #
117
+ # User/Group: The name (or #number) of the user/group to run httpd as.
118
+ # It is usually good practice to create a dedicated user and group for
119
+ # running httpd, as with most system services.
120
+ #
121
+ User daemon
122
+ Group daemon
123
+ </IfModule>
124
+
125
+ # 'Main' server configuration
126
+ #
127
+ # The directives in this section set up the values used by the 'main'
128
+ # server, which responds to any requests that aren't handled by a
129
+ # <VirtualHost> definition. These values also provide defaults for
130
+ # any <VirtualHost> containers you may define later in the file.
131
+ #
132
+ # All of these directives may appear inside <VirtualHost> containers,
133
+ # in which case these default settings will be overridden for the
134
+ # virtual host being defined.
135
+ #
136
+
137
+ #
138
+ # ServerAdmin: Your address, where problems with the server should be
139
+ # e-mailed. This address appears on some server-generated pages, such
140
+ # as error documents. e.g. admin@your-domain.com
141
+ #
142
+ ServerAdmin you@example.com
143
+
144
+ #
145
+ # ServerName gives the name and port that the server uses to identify itself.
146
+ # This can often be determined automatically, but we recommend you specify
147
+ # it explicitly to prevent problems during startup.
148
+ #
149
+ # If your host doesn't have a registered DNS name, enter its IP address here.
150
+ #
151
+ #ServerName www.example.com:80
152
+
153
+ #
154
+ # DocumentRoot: The directory out of which you will serve your
155
+ # documents. By default, all requests are taken from this directory, but
156
+ # symbolic links and aliases may be used to point to other locations.
157
+ #
158
+ DocumentRoot "/usr/local/apache2/htdocs"
159
+
160
+ #
161
+ # Each directory to which Apache has access can be configured with respect
162
+ # to which services and features are allowed and/or disabled in that
163
+ # directory (and its subdirectories).
164
+ #
165
+ # First, we configure the "default" to be a very restrictive set of
166
+ # features.
167
+ #
168
+ <Directory />
169
+ Options FollowSymLinks
170
+ AllowOverride None
171
+ Order deny,allow
172
+ Deny from all
173
+ </Directory>
174
+
175
+ #
176
+ # Note that from this point forward you must specifically allow
177
+ # particular features to be enabled - so if something's not working as
178
+ # you might expect, make sure that you have specifically enabled it
179
+ # below.
180
+ #
181
+
182
+ #
183
+ # This should be changed to whatever you set DocumentRoot to.
184
+ #
185
+ <Directory "/usr/local/apache2/htdocs">
186
+ #
187
+ # Possible values for the Options directive are "None", "All",
188
+ # or any combination of:
189
+ # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
190
+ #
191
+ # Note that "MultiViews" must be named *explicitly* --- "Options All"
192
+ # doesn't give it to you.
193
+ #
194
+ # The Options directive is both complicated and important. Please see
195
+ # http://httpd.apache.org/docs/2.2/mod/core.html#options
196
+ # for more information.
197
+ #
198
+ Options Indexes FollowSymLinks
199
+
200
+ #
201
+ # AllowOverride controls what directives may be placed in .htaccess files.
202
+ # It can be "All", "None", or any combination of the keywords:
203
+ # Options FileInfo AuthConfig Limit
204
+ #
205
+ AllowOverride None
206
+
207
+ #
208
+ # Controls who can get stuff from this server.
209
+ #
210
+ Order allow,deny
211
+ Allow from all
212
+
213
+ </Directory>
214
+
215
+ #
216
+ # DirectoryIndex: sets the file that Apache will serve if a directory
217
+ # is requested.
218
+ #
219
+ <IfModule dir_module>
220
+ DirectoryIndex index.html
221
+ </IfModule>
222
+
223
+ #
224
+ # The following lines prevent .htaccess and .htpasswd files from being
225
+ # viewed by Web clients.
226
+ #
227
+ <FilesMatch "^\.ht">
228
+ Order allow,deny
229
+ Deny from all
230
+ Satisfy All
231
+ </FilesMatch>
232
+
233
+ #
234
+ # ErrorLog: The location of the error log file.
235
+ # If you do not specify an ErrorLog directive within a <VirtualHost>
236
+ # container, error messages relating to that virtual host will be
237
+ # logged here. If you *do* define an error logfile for a <VirtualHost>
238
+ # container, that host's errors will be logged there and not here.
239
+ #
240
+ ErrorLog logs/error_log
241
+
242
+ #
243
+ # LogLevel: Control the number of messages logged to the error_log.
244
+ # Possible values include: debug, info, notice, warn, error, crit,
245
+ # alert, emerg.
246
+ #
247
+ LogLevel warn
248
+
249
+ <IfModule log_config_module>
250
+ #
251
+ # The following directives define some format nicknames for use with
252
+ # a CustomLog directive (see below).
253
+ #
254
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
255
+ LogFormat "%h %l %u %t \"%r\" %>s %b" common
256
+
257
+ <IfModule logio_module>
258
+ # You need to enable mod_logio.c to use %I and %O
259
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
260
+ </IfModule>
261
+
262
+ #
263
+ # The location and format of the access logfile (Common Logfile Format).
264
+ # If you do not define any access logfiles within a <VirtualHost>
265
+ # container, they will be logged here. Contrariwise, if you *do*
266
+ # define per-<VirtualHost> access logfiles, transactions will be
267
+ # logged therein and *not* in this file.
268
+ #
269
+ CustomLog logs/access_log common
270
+
271
+ #
272
+ # If you prefer a logfile with access, agent, and referer information
273
+ # (Combined Logfile Format) you can use the following directive.
274
+ #
275
+ #CustomLog logs/access_log combined
276
+ </IfModule>
277
+
278
+ <IfModule alias_module>
279
+ #
280
+ # Redirect: Allows you to tell clients about documents that used to
281
+ # exist in your server's namespace, but do not anymore. The client
282
+ # will make a new request for the document at its new location.
283
+ # Example:
284
+ # Redirect permanent /foo http://www.example.com/bar
285
+
286
+ #
287
+ # Alias: Maps web paths into filesystem paths and is used to
288
+ # access content that does not live under the DocumentRoot.
289
+ # Example:
290
+ # Alias /webpath /full/filesystem/path
291
+ #
292
+ # If you include a trailing / on /webpath then the server will
293
+ # require it to be present in the URL. You will also likely
294
+ # need to provide a <Directory> section to allow access to
295
+ # the filesystem path.
296
+
297
+ #
298
+ # ScriptAlias: This controls which directories contain server scripts.
299
+ # ScriptAliases are essentially the same as Aliases, except that
300
+ # documents in the target directory are treated as applications and
301
+ # run by the server when requested rather than as documents sent to the
302
+ # client. The same rules about trailing "/" apply to ScriptAlias
303
+ # directives as to Alias.
304
+ #
305
+ ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
306
+
307
+ </IfModule>
308
+
309
+ <IfModule cgid_module>
310
+ #
311
+ # ScriptSock: On threaded servers, designate the path to the UNIX
312
+ # socket used to communicate with the CGI daemon of mod_cgid.
313
+ #
314
+ #Scriptsock logs/cgisock
315
+ </IfModule>
316
+
317
+ #
318
+ # "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
319
+ # CGI directory exists, if you have that configured.
320
+ #
321
+ <Directory "/usr/local/apache2/cgi-bin">
322
+ AllowOverride None
323
+ Options None
324
+ Order allow,deny
325
+ Allow from all
326
+ </Directory>
327
+
328
+ #
329
+ # DefaultType: the default MIME type the server will use for a document
330
+ # if it cannot otherwise determine one, such as from filename extensions.
331
+ # If your server contains mostly text or HTML documents, "text/plain" is
332
+ # a good value. If most of your content is binary, such as applications
333
+ # or images, you may want to use "application/octet-stream" instead to
334
+ # keep browsers from trying to display binary files as though they are
335
+ # text.
336
+ #
337
+ DefaultType text/plain
338
+
339
+ <IfModule mime_module>
340
+ #
341
+ # TypesConfig points to the file containing the list of mappings from
342
+ # filename extension to MIME-type.
343
+ #
344
+ TypesConfig conf/mime.types
345
+
346
+ #
347
+ # AddType allows you to add to or override the MIME configuration
348
+ # file specified in TypesConfig for specific file types.
349
+ #
350
+ #AddType application/x-gzip .tgz
351
+ #
352
+ # AddEncoding allows you to have certain browsers uncompress
353
+ # information on the fly. Note: Not all browsers support this.
354
+ #
355
+ #AddEncoding x-compress .Z
356
+ #AddEncoding x-gzip .gz .tgz
357
+ #
358
+ # If the AddEncoding directives above are commented-out, then you
359
+ # probably should define those extensions to indicate media types:
360
+ #
361
+ AddType application/x-compress .Z
362
+ AddType application/x-gzip .gz .tgz
363
+
364
+ #
365
+ # AddHandler allows you to map certain file extensions to "handlers":
366
+ # actions unrelated to filetype. These can be either built into the server
367
+ # or added with the Action directive (see below)
368
+ #
369
+ # To use CGI scripts outside of ScriptAliased directories:
370
+ # (You will also need to add "ExecCGI" to the "Options" directive.)
371
+ #
372
+ #AddHandler cgi-script .cgi
373
+
374
+ # For type maps (negotiated resources):
375
+ #AddHandler type-map var
376
+
377
+ #
378
+ # Filters allow you to process content before it is sent to the client.
379
+ #
380
+ # To parse .shtml files for server-side includes (SSI):
381
+ # (You will also need to add "Includes" to the "Options" directive.)
382
+ #
383
+ #AddType text/html .shtml
384
+ #AddOutputFilter INCLUDES .shtml
385
+ </IfModule>
386
+
387
+ #
388
+ # The mod_mime_magic module allows the server to use various hints from the
389
+ # contents of the file itself to determine its type. The MIMEMagicFile
390
+ # directive tells the module where the hint definitions are located.
391
+ #
392
+ #MIMEMagicFile conf/magic
393
+
394
+ #
395
+ # Customizable error responses come in three flavors:
396
+ # 1) plain text 2) local redirects 3) external redirects
397
+ #
398
+ # Some examples:
399
+ #ErrorDocument 500 "The server made a boo boo."
400
+ #ErrorDocument 404 /missing.html
401
+ #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
402
+ #ErrorDocument 402 http://www.example.com/subscription_info.html
403
+ #
404
+
405
+ #
406
+ # EnableMMAP and EnableSendfile: On systems that support it,
407
+ # memory-mapping or the sendfile syscall is used to deliver
408
+ # files. This usually improves server performance, but must
409
+ # be turned off when serving from networked-mounted
410
+ # filesystems or if support for these functions is otherwise
411
+ # broken on your system.
412
+ #
413
+ #EnableMMAP off
414
+ #EnableSendfile off
415
+
416
+ # Supplemental configuration
417
+ #
418
+ # The configuration files in the conf/extra/ directory can be
419
+ # included to add extra features or to modify the default configuration of
420
+ # the server, or you may simply copy their contents here and change as
421
+ # necessary.
422
+
423
+ # Server-pool management (MPM specific)
424
+ #Include conf/extra/httpd-mpm.conf
425
+
426
+ # Multi-language error messages
427
+ #Include conf/extra/httpd-multilang-errordoc.conf
428
+
429
+ # Fancy directory listings
430
+ #Include conf/extra/httpd-autoindex.conf
431
+
432
+ # Language settings
433
+ #Include conf/extra/httpd-languages.conf
434
+
435
+ # User home directories
436
+ #Include conf/extra/httpd-userdir.conf
437
+
438
+ # Real-time info on requests and configuration
439
+ #Include conf/extra/httpd-info.conf
440
+
441
+ # Virtual hosts
442
+ #Include conf/extra/httpd-vhosts.conf
443
+
444
+ # Local access to the Apache HTTP Server Manual
445
+ #Include conf/extra/httpd-manual.conf
446
+
447
+ # Distributed authoring and versioning (WebDAV)
448
+ #Include conf/extra/httpd-dav.conf
449
+
450
+ # Various default settings
451
+ #Include conf/extra/httpd-default.conf
452
+
453
+ # Secure (SSL/TLS) connections
454
+ #Include conf/extra/httpd-ssl.conf
455
+ #
456
+ # Note: The following must must be present to support
457
+ # starting without SSL on platforms with no /dev/random equivalent
458
+ # but a statically compiled-in mod_ssl.
459
+ #
460
+ <IfModule ssl_module>
461
+ SSLRandomSeed startup builtin
462
+ SSLRandomSeed connect builtin
463
+ </IfModule>
464
+ Include conf/apps/
465
+ NameVirtualHost *:80
@@ -0,0 +1,37 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6
+ <title>Apache2 installed by deprec</title>
7
+ <link rel="stylesheet" href="/master.css" type="text/css" media="screen" title="no title" charset="utf-8">
8
+
9
+ </head>
10
+ <body id="" onload="">
11
+ <div id="wrapper">
12
+ <h1>Apache2 installed by deprec</h1>
13
+ <h2>Commands</h2>
14
+ <dl>
15
+ <dt>cap deprec:apache:start</dt><dd>Start apache</dd>
16
+ <dt>cap deprec:apache:stop</dt><dd>Stop apache</dd>
17
+ <dt>cap deprec:apache:restart</dt><dd>Stop restart</dd>
18
+ <dt>cap deprec:apache:reload</dt><dd>Reload apache</dd>
19
+
20
+ <dt>cap deprec:apache:install</dt><dd>Install apache</dd>
21
+ <dt>cap deprec:apache:config_gen</dt><dd>Generate apache configs</dd>
22
+
23
+ <dt>cap deprec:apache:activate</dt><dd>Start Apache when server boots</dd>
24
+ <dt>cap deprec:apache:deactivate</dt><dd>Don't start Apache when server boots</dd>
25
+
26
+ </dl>
27
+
28
+ <dl>
29
+ <p>Installation options</p>
30
+ <% SRC_PACKAGES[:apache].each do |key, val| %>
31
+ <dt><%= key %></dt>
32
+ <dd><%= val %></dd>
33
+ <% end %>
34
+ </dl>
35
+ </div>
36
+ </body>
37
+ </html>
@@ -0,0 +1,72 @@
1
+ /*-----------------------------------------------------------------------------
2
+ Basic Stylesheet
3
+
4
+ version: 1
5
+ author: Mike Bailey
6
+ email: mike@bailey.net.au
7
+ website: http://mike.bailey.net.au/
8
+ -----------------------------------------------------------------------------*/
9
+
10
+ /* General stuff *************************************************************/
11
+
12
+ * {
13
+ padding:0;
14
+ margin: 0;
15
+ font-family: sans-serif;
16
+ }
17
+
18
+ body {
19
+ text-align: center;
20
+ min-width: 760;
21
+ }
22
+
23
+ .clear {
24
+ clear: both;
25
+ }
26
+
27
+ h1 {
28
+ padding: 0.5em;
29
+ }
30
+
31
+ dl {
32
+ border: 1px solid red;
33
+ padding: 1em;
34
+ }
35
+
36
+ dl p {
37
+ font-size: 1.5em;
38
+ padding: .5em 0;
39
+ }
40
+
41
+ dt {
42
+ padding: 0 0 0 1em;
43
+ }
44
+
45
+ dd {
46
+ padding: 0 0 1em 2em;
47
+ color: darkblue;
48
+ }
49
+
50
+
51
+ /* Layout ********************************************************************/
52
+
53
+ #wrapper {
54
+ width: 720px;
55
+ background: #d0d0d0;
56
+ margin: 0 auto;
57
+ text-align: left;
58
+ }
59
+
60
+
61
+ /* Navigation links **********************************************************/
62
+
63
+ ul#navlinks {
64
+ width: 720px;
65
+ list-style: none;
66
+ background: #FAA819;
67
+ float: left;
68
+ }
69
+
70
+ ul li {
71
+ float:left;
72
+ }
@@ -0,0 +1,18 @@
1
+ #
2
+ # /etc/apt/sources.list
3
+ #
4
+
5
+
6
+ #
7
+ # gutsy
8
+ #
9
+ deb http://<%= apt_mirror_hostname %>/ubuntu gutsy main restricted universe multiverse
10
+ deb http://archive.ubuntu.com/ubuntu gutsy-updates main restricted universe multiverse
11
+ deb http://security.ubuntu.com/ubuntu gutsy-security main restricted universe
12
+
13
+ deb-src http://archive.ubuntu.com/ubuntu gutsy main restricted universe
14
+ deb-src http://archive.ubuntu.com/ubuntu gutsy-updates main restricted universe
15
+ deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted universe
16
+
17
+
18
+
@@ -0,0 +1,4 @@
1
+ #
2
+ # Regular cron jobs for the apt-mirror package
3
+ #
4
+ 0 4 * * * apt-mirror /usr/bin/apt-mirror > /var/spool/apt-mirror/var/cron.log
@@ -0,0 +1,33 @@
1
+ ############# config ##################
2
+ #
3
+ # set base_path /var/spool/apt-mirror
4
+ #
5
+ # if you change the base path you must create the directories below with write privlages
6
+ #
7
+ # set mirror_path $base_path/mirror
8
+ # set skel_path $base_path/skel
9
+ # set var_path $base_path/var
10
+ # set cleanscript $var_path/clean.sh
11
+ # set defaultarch <running host architecture>
12
+ set nthreads 20
13
+ set _tilde 0
14
+ #
15
+ ############# end config ##############
16
+
17
+ <% Array(apt_releases_to_mirror).each do |release| %>
18
+ # <%= release %>
19
+ deb http://archive.ubuntu.com/ubuntu <%= release %> main restricted universe multiverse
20
+ #deb http://archive.ubuntu.com/ubuntu <%= release %>-updates main restricted universe multiverse
21
+ #deb http://archive.ubuntu.com/ubuntu <%= release %>-backports main restricted universe multiverse
22
+ #deb http://archive.ubuntu.com/ubuntu <%= release %>-security main restricted universe multiverse
23
+ #deb http://archive.ubuntu.com/ubuntu <%= release %>-proposed main restricted universe multiverse
24
+
25
+ deb-src http://archive.ubuntu.com/ubuntu <%= release %> main restricted universe multiverse
26
+ #deb-src http://archive.ubuntu.com/ubuntu <%= release %>-updates main restricted universe multiverse
27
+ #deb-src http://archive.ubuntu.com/ubuntu <%= release %>-backports main restricted universe multiverse
28
+ #deb-src http://archive.ubuntu.com/ubuntu <%= release %>-security main restricted universe multiverse
29
+ #deb-src http://archive.ubuntu.com/ubuntu <%= release %>-proposed main restricted universe multiverse
30
+ <% end %>
31
+
32
+ clean http://archive.ubuntu.com/ubuntu
33
+
@@ -0,0 +1,9 @@
1
+ <%= shared_path %>/log/ar_sendmail.log {
2
+ daily
3
+ rotate 14
4
+ dateext
5
+ missingok
6
+ compress
7
+ sharedscripts
8
+ copytruncate
9
+ }
@@ -0,0 +1,5 @@
1
+ check process ar_sendmail-<%= application %> with pidfile <%= current_path %>/tmp/pids/ar_sendmail.pid
2
+ start program = "/usr/local/sbin/daemonize -c <%= current_path %> -o <%= current_path %>/log/ar_sendmail.log -e <%= current_path %>/log/ar_sendmail.log -p <%= current_path %>/tmp/pids/ar_sendmail.pid -l <%= current_path %>/tmp/pids/ar_sendmail.pid /usr/local/bin/ar_sendmail --environment production --verbose"
3
+ stop program = "/usr/bin/xargs kill -9 < <%= current_path %>/tmp/pids/ar_sendmail.pid"
4
+
5
+ if 3 restarts within 5 cycles then timeout
@@ -0,0 +1,14 @@
1
+ ssh_options[:paranoid] = false
2
+ ssh_options[:forward_agent] = true
3
+
4
+
5
+ # Just import the general purpose tasks
6
+ require '/deprec/general_purpose' if respond_to?(:namespace)
7
+
8
+ # Enable all deprec tasks all the time. This will change the
9
+ # behviour of some standard cap tasks (like 'cap deploy') so
10
+ # only enable it if you know what you're doing!
11
+ #
12
+ # require 'deprec/recipes' unless respond_to?(:namespace)
13
+
14
+
@@ -0,0 +1,2 @@
1
+ auth 1
2
+ 1 sha1 <%= heartbeat_auth_key %>
@@ -0,0 +1,15 @@
1
+ # http://linux-ha.org/ha.cf
2
+ logfacility daemon
3
+ keepalive 1
4
+ deadtime 10
5
+ warntime 5
6
+ initdead 120 # depend on your hardware
7
+ udpport 694
8
+ ping <%= heartbeat_ping %>
9
+ bcast <%= heartbeat_bcast %>
10
+ auto_failback <%= heartbeat_auto_failback %>
11
+ <% heartbeat_nodes.each do |node| -%>
12
+ node <%= node %>
13
+ <% end -%>
14
+ respawn hacluster /usr/lib/heartbeat/ipfail
15
+ use_logd yes
@@ -0,0 +1 @@
1
+ <%= heartbeat_preferred_node %> <%= heartbeat_resources %>