fast_food 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +73 -0
- data/Rakefile +8 -0
- data/chef/.chef/bootstrap/chef-solo.erb +27 -0
- data/chef/.chef/knife.rb +8 -0
- data/chef/.gitignore +1 -0
- data/chef/README +3 -0
- data/chef/cookbooks/README +1 -0
- data/chef/cookbooks/apache2/.gitignore +1 -0
- data/chef/cookbooks/apache2/CHANGELOG.md +81 -0
- data/chef/cookbooks/apache2/CONTRIBUTING +29 -0
- data/chef/cookbooks/apache2/Gemfile +10 -0
- data/chef/cookbooks/apache2/LICENSE +201 -0
- data/chef/cookbooks/apache2/README.md +373 -0
- data/chef/cookbooks/apache2/attributes/default.rb +149 -0
- data/chef/cookbooks/apache2/attributes/mod_auth_openid.rb +32 -0
- data/chef/cookbooks/apache2/definitions/apache_conf.rb +26 -0
- data/chef/cookbooks/apache2/definitions/apache_module.rb +53 -0
- data/chef/cookbooks/apache2/definitions/apache_site.rb +43 -0
- data/chef/cookbooks/apache2/definitions/web_app.rb +49 -0
- data/chef/cookbooks/apache2/files/default/apache2_module_conf_generate.pl +41 -0
- data/chef/cookbooks/apache2/files/default/tests/minitest/default_test.rb +64 -0
- data/chef/cookbooks/apache2/files/default/tests/minitest/helpers.rb +36 -0
- data/chef/cookbooks/apache2/files/default/tests/minitest/mod_auth_openid_test.rb +25 -0
- data/chef/cookbooks/apache2/files/default/tests/minitest/mod_dav_svn_test.rb +16 -0
- data/chef/cookbooks/apache2/files/default/tests/minitest/mod_perl_test.rb +22 -0
- data/chef/cookbooks/apache2/files/default/tests/minitest/mod_php5_test.rb +19 -0
- data/chef/cookbooks/apache2/files/default/tests/minitest/mod_python_test.rb +14 -0
- data/chef/cookbooks/apache2/files/default/tests/minitest/mod_ssl_test.rb +19 -0
- data/chef/cookbooks/apache2/files/default/tests/minitest/mod_wsgi_test.rb +14 -0
- data/chef/cookbooks/apache2/files/default/tests/minitest/mod_xsendfile_test.rb +14 -0
- data/chef/cookbooks/apache2/files/default/tests/minitest/modules_test.rb +19 -0
- data/chef/cookbooks/apache2/metadata.json +511 -0
- data/chef/cookbooks/apache2/metadata.rb +205 -0
- data/chef/cookbooks/apache2/recipes/default.rb +221 -0
- data/chef/cookbooks/apache2/recipes/god_monitor.rb +33 -0
- data/chef/cookbooks/apache2/recipes/mod_alias.rb +22 -0
- data/chef/cookbooks/apache2/recipes/mod_apreq2.rb +45 -0
- data/chef/cookbooks/apache2/recipes/mod_auth_basic.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_auth_digest.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_auth_openid.rb +113 -0
- data/chef/cookbooks/apache2/recipes/mod_authn_file.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_authnz_ldap.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_authz_default.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_authz_groupfile.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_authz_host.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_authz_user.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_autoindex.rb +22 -0
- data/chef/cookbooks/apache2/recipes/mod_cgi.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_dav.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_dav_fs.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_dav_svn.rb +29 -0
- data/chef/cookbooks/apache2/recipes/mod_deflate.rb +22 -0
- data/chef/cookbooks/apache2/recipes/mod_dir.rb +22 -0
- data/chef/cookbooks/apache2/recipes/mod_env.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_expires.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_fastcgi.rb +26 -0
- data/chef/cookbooks/apache2/recipes/mod_fcgid.rb +53 -0
- data/chef/cookbooks/apache2/recipes/mod_headers.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_ldap.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_log_config.rb +24 -0
- data/chef/cookbooks/apache2/recipes/mod_logio.rb +24 -0
- data/chef/cookbooks/apache2/recipes/mod_mime.rb +22 -0
- data/chef/cookbooks/apache2/recipes/mod_negotiation.rb +22 -0
- data/chef/cookbooks/apache2/recipes/mod_perl.rb +39 -0
- data/chef/cookbooks/apache2/recipes/mod_php5.rb +99 -0
- data/chef/cookbooks/apache2/recipes/mod_proxy.rb +22 -0
- data/chef/cookbooks/apache2/recipes/mod_proxy_ajp.rb +21 -0
- data/chef/cookbooks/apache2/recipes/mod_proxy_balancer.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_proxy_connect.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_proxy_http.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_python.rb +32 -0
- data/chef/cookbooks/apache2/recipes/mod_rewrite.rb +20 -0
- data/chef/cookbooks/apache2/recipes/mod_setenvif.rb +22 -0
- data/chef/cookbooks/apache2/recipes/mod_ssl.rb +43 -0
- data/chef/cookbooks/apache2/recipes/mod_status.rb +22 -0
- data/chef/cookbooks/apache2/recipes/mod_wsgi.rb +27 -0
- data/chef/cookbooks/apache2/recipes/mod_xsendfile.rb +27 -0
- data/chef/cookbooks/apache2/templates/default/a2dismod.erb +22 -0
- data/chef/cookbooks/apache2/templates/default/a2dissite.erb +29 -0
- data/chef/cookbooks/apache2/templates/default/a2enmod.erb +37 -0
- data/chef/cookbooks/apache2/templates/default/a2ensite.erb +38 -0
- data/chef/cookbooks/apache2/templates/default/apache2.conf.erb +237 -0
- data/chef/cookbooks/apache2/templates/default/apache2.god.erb +19 -0
- data/chef/cookbooks/apache2/templates/default/charset.erb +6 -0
- data/chef/cookbooks/apache2/templates/default/default-site.erb +57 -0
- data/chef/cookbooks/apache2/templates/default/mods/README +2 -0
- data/chef/cookbooks/apache2/templates/default/mods/alias.conf.erb +24 -0
- data/chef/cookbooks/apache2/templates/default/mods/authopenid.load.erb +1 -0
- data/chef/cookbooks/apache2/templates/default/mods/autoindex.conf.erb +101 -0
- data/chef/cookbooks/apache2/templates/default/mods/deflate.conf.erb +16 -0
- data/chef/cookbooks/apache2/templates/default/mods/dir.conf.erb +5 -0
- data/chef/cookbooks/apache2/templates/default/mods/fastcgi.conf.erb +5 -0
- data/chef/cookbooks/apache2/templates/default/mods/fcgid.conf.erb +10 -0
- data/chef/cookbooks/apache2/templates/default/mods/mime.conf.erb +198 -0
- data/chef/cookbooks/apache2/templates/default/mods/negotiation.conf.erb +18 -0
- data/chef/cookbooks/apache2/templates/default/mods/php5.conf.erb +16 -0
- data/chef/cookbooks/apache2/templates/default/mods/proxy.conf.erb +19 -0
- data/chef/cookbooks/apache2/templates/default/mods/setenvif.conf.erb +28 -0
- data/chef/cookbooks/apache2/templates/default/mods/ssl.conf.erb +76 -0
- data/chef/cookbooks/apache2/templates/default/mods/status.conf.erb +26 -0
- data/chef/cookbooks/apache2/templates/default/port_apache.erb +2 -0
- data/chef/cookbooks/apache2/templates/default/ports.conf.erb +6 -0
- data/chef/cookbooks/apache2/templates/default/security.erb +50 -0
- data/chef/cookbooks/apache2/templates/default/web_app.conf.erb +43 -0
- data/chef/cookbooks/build-essential/.gitignore +4 -0
- data/chef/cookbooks/build-essential/CHANGELOG.md +31 -0
- data/chef/cookbooks/build-essential/CONTRIBUTING +29 -0
- data/chef/cookbooks/build-essential/Gemfile +3 -0
- data/chef/cookbooks/build-essential/LICENSE +201 -0
- data/chef/cookbooks/build-essential/README.md +129 -0
- data/chef/cookbooks/build-essential/attributes/default.rb +33 -0
- data/chef/cookbooks/build-essential/metadata.json +41 -0
- data/chef/cookbooks/build-essential/metadata.rb +14 -0
- data/chef/cookbooks/build-essential/recipes/default.rb +92 -0
- data/chef/cookbooks/database/.gitignore +1 -0
- data/chef/cookbooks/database/CHANGELOG.md +46 -0
- data/chef/cookbooks/database/CONTRIBUTING +29 -0
- data/chef/cookbooks/database/LICENSE +201 -0
- data/chef/cookbooks/database/README.md +468 -0
- data/chef/cookbooks/database/libraries/provider_database_mysql.rb +103 -0
- data/chef/cookbooks/database/libraries/provider_database_mysql_user.rb +76 -0
- data/chef/cookbooks/database/libraries/provider_database_postgresql.rb +131 -0
- data/chef/cookbooks/database/libraries/provider_database_postgresql_user.rb +83 -0
- data/chef/cookbooks/database/libraries/provider_database_sql_server.rb +109 -0
- data/chef/cookbooks/database/libraries/provider_database_sql_server_user.rb +106 -0
- data/chef/cookbooks/database/libraries/resource_database.rb +119 -0
- data/chef/cookbooks/database/libraries/resource_database_user.rb +90 -0
- data/chef/cookbooks/database/libraries/resource_mysql_database.rb +34 -0
- data/chef/cookbooks/database/libraries/resource_mysql_database_user.rb +34 -0
- data/chef/cookbooks/database/libraries/resource_postgresql_database.rb +35 -0
- data/chef/cookbooks/database/libraries/resource_postgresql_database_user.rb +35 -0
- data/chef/cookbooks/database/libraries/resource_sql_server_database.rb +34 -0
- data/chef/cookbooks/database/libraries/resource_sql_server_database_user.rb +34 -0
- data/chef/cookbooks/database/metadata.json +45 -0
- data/chef/cookbooks/database/metadata.rb +22 -0
- data/chef/cookbooks/database/recipes/default.rb +20 -0
- data/chef/cookbooks/database/recipes/ebs_backup.rb +89 -0
- data/chef/cookbooks/database/recipes/ebs_volume.rb +204 -0
- data/chef/cookbooks/database/recipes/master.rb +78 -0
- data/chef/cookbooks/database/recipes/mysql.rb +20 -0
- data/chef/cookbooks/database/recipes/postgresql.rb +20 -0
- data/chef/cookbooks/database/recipes/snapshot.rb +62 -0
- data/chef/cookbooks/database/templates/default/app_grants.sql.erb +8 -0
- data/chef/cookbooks/database/templates/default/aws_config.erb +3 -0
- data/chef/cookbooks/database/templates/default/chef-solo-database-snapshot.cron.erb +6 -0
- data/chef/cookbooks/database/templates/default/chef-solo-database-snapshot.json.erb +1 -0
- data/chef/cookbooks/database/templates/default/chef-solo-database-snapshot.rb.erb +6 -0
- data/chef/cookbooks/database/templates/default/ebs-backup-cron.erb +2 -0
- data/chef/cookbooks/database/templates/default/ebs-db-backup.sh.erb +8 -0
- data/chef/cookbooks/database/templates/default/ebs-db-restore.sh.erb +10 -0
- data/chef/cookbooks/database/templates/default/s3cfg.erb +27 -0
- data/chef/cookbooks/fast_food/recipes/default.rb +24 -0
- data/chef/cookbooks/fast_food/recipes/site.rb +7 -0
- data/chef/cookbooks/fast_food/templates/default/web_app.conf.erb +43 -0
- data/chef/cookbooks/git/CHANGELOG.md +49 -0
- data/chef/cookbooks/git/CONTRIBUTING +29 -0
- data/chef/cookbooks/git/LICENSE +201 -0
- data/chef/cookbooks/git/README.md +115 -0
- data/chef/cookbooks/git/attributes/default.rb +37 -0
- data/chef/cookbooks/git/metadata.json +48 -0
- data/chef/cookbooks/git/metadata.rb +20 -0
- data/chef/cookbooks/git/recipes/default.rb +46 -0
- data/chef/cookbooks/git/recipes/server.rb +38 -0
- data/chef/cookbooks/git/recipes/source.rb +48 -0
- data/chef/cookbooks/git/recipes/windows.rb +32 -0
- data/chef/cookbooks/git/templates/default/sv-git-daemon-log-run.erb +2 -0
- data/chef/cookbooks/git/templates/default/sv-git-daemon-run.erb +3 -0
- data/chef/cookbooks/imagemagick/README.md +57 -0
- data/chef/cookbooks/imagemagick/metadata.json +37 -0
- data/chef/cookbooks/imagemagick/metadata.rb +14 -0
- data/chef/cookbooks/imagemagick/recipes/default.rb +25 -0
- data/chef/cookbooks/imagemagick/recipes/devel.rb +32 -0
- data/chef/cookbooks/imagemagick/recipes/rmagick.rb +22 -0
- data/chef/cookbooks/mysql/.gitignore +5 -0
- data/chef/cookbooks/mysql/CHANGELOG.md +125 -0
- data/chef/cookbooks/mysql/CONTRIBUTING +29 -0
- data/chef/cookbooks/mysql/Gemfile +8 -0
- data/chef/cookbooks/mysql/LICENSE +201 -0
- data/chef/cookbooks/mysql/README.md +227 -0
- data/chef/cookbooks/mysql/attributes/client.rb +50 -0
- data/chef/cookbooks/mysql/attributes/server.rb +240 -0
- data/chef/cookbooks/mysql/files/default/tests/minitest/server_test.rb +36 -0
- data/chef/cookbooks/mysql/files/default/tests/minitest/support/helpers.rb +11 -0
- data/chef/cookbooks/mysql/libraries/helpers.rb +33 -0
- data/chef/cookbooks/mysql/metadata.json +418 -0
- data/chef/cookbooks/mysql/metadata.rb +140 -0
- data/chef/cookbooks/mysql/recipes/client.rb +59 -0
- data/chef/cookbooks/mysql/recipes/default.rb +20 -0
- data/chef/cookbooks/mysql/recipes/ruby.rb +36 -0
- data/chef/cookbooks/mysql/recipes/server.rb +221 -0
- data/chef/cookbooks/mysql/recipes/server_ec2.rb +51 -0
- data/chef/cookbooks/mysql/templates/default/debian.cnf.erb +12 -0
- data/chef/cookbooks/mysql/templates/default/grants.sql.erb +15 -0
- data/chef/cookbooks/mysql/templates/default/my.cnf.erb +312 -0
- data/chef/cookbooks/mysql/templates/default/mysql-server.seed.erb +10 -0
- data/chef/cookbooks/mysql/templates/default/port_mysql.erb +3 -0
- data/chef/cookbooks/mysql/templates/windows/my.cnf.erb +61 -0
- data/chef/cookbooks/openssl/README.md +37 -0
- data/chef/cookbooks/openssl/libraries/secure_password.rb +37 -0
- data/chef/cookbooks/openssl/metadata.json +30 -0
- data/chef/cookbooks/openssl/metadata.rb +8 -0
- data/chef/cookbooks/openssl/recipes/default.rb +19 -0
- data/chef/cookbooks/passenger_apache2/.gitignore +4 -0
- data/chef/cookbooks/passenger_apache2/CHANGELOG.md +29 -0
- data/chef/cookbooks/passenger_apache2/CONTRIBUTING +29 -0
- data/chef/cookbooks/passenger_apache2/Gemfile +3 -0
- data/chef/cookbooks/passenger_apache2/LICENSE +201 -0
- data/chef/cookbooks/passenger_apache2/README.md +77 -0
- data/chef/cookbooks/passenger_apache2/attributes/default.rb +5 -0
- data/chef/cookbooks/passenger_apache2/metadata.json +38 -0
- data/chef/cookbooks/passenger_apache2/metadata.rb +17 -0
- data/chef/cookbooks/passenger_apache2/recipes/default.rb +60 -0
- data/chef/cookbooks/passenger_apache2/recipes/mod_rails.rb +47 -0
- data/chef/cookbooks/passenger_apache2/templates/default/passenger.conf.erb +3 -0
- data/chef/cookbooks/passenger_apache2/templates/default/passenger.load.erb +1 -0
- data/chef/cookbooks/passenger_apache2/templates/default/passenger_web_app.conf.erb +32 -0
- data/chef/cookbooks/passenger_apache2/templates/default/web_app.conf.erb +32 -0
- data/chef/roles/apache2.rb +12 -0
- data/chef/roles/mysql.rb +18 -0
- data/chef/solo.rb +5 -0
- data/config/deploy/centos.sh +17 -0
- data/config/deploy/production.rb +3 -0
- data/config/deploy/ubuntu.sh +10 -0
- data/config/deploy.rb +99 -0
- data/config/deployment.yml +6 -0
- data/fast_food.gemspec +26 -0
- data/lib/fast_food/railtie.rb +9 -0
- data/lib/fast_food/version.rb +3 -0
- data/lib/fast_food.rb +5 -0
- data/lib/tasks/fast_food.rake +100 -0
- data/spec/lib/fast_food_spec.rb +0 -0
- data/spec/spec_helper.rb +1 -0
- metadata +349 -0
@@ -0,0 +1,198 @@
|
|
1
|
+
<IfModule mod_mime.c>
|
2
|
+
|
3
|
+
#
|
4
|
+
# TypesConfig points to the file containing the list of mappings from
|
5
|
+
# filename extension to MIME-type.
|
6
|
+
#
|
7
|
+
<% case node['platform'] -%>
|
8
|
+
<% when "arch" -%>
|
9
|
+
TypesConfig <%= node['apache']['dir'] %>/conf/mime.types
|
10
|
+
<% when "freebsd" -%>
|
11
|
+
TypesConfig <%= node['apache']['dir'] %>/mime.types
|
12
|
+
<% else -%>
|
13
|
+
TypesConfig /etc/mime.types
|
14
|
+
<% end -%>
|
15
|
+
|
16
|
+
#
|
17
|
+
# AddType allows you to add to or override the MIME configuration
|
18
|
+
# file mime.types for specific file types.
|
19
|
+
#
|
20
|
+
#AddType application/x-gzip .tgz
|
21
|
+
#
|
22
|
+
# AddEncoding allows you to have certain browsers uncompress
|
23
|
+
# information on the fly. Note: Not all browsers support this.
|
24
|
+
# Despite the name similarity, the following Add* directives have
|
25
|
+
# nothing to do with the FancyIndexing customization directives above.
|
26
|
+
#
|
27
|
+
#AddEncoding x-compress .Z
|
28
|
+
#AddEncoding x-gzip .gz .tgz
|
29
|
+
#AddEncoding x-bzip2 .bz2
|
30
|
+
#
|
31
|
+
# If the AddEncoding directives above are commented-out, then you
|
32
|
+
# probably should define those extensions to indicate media types:
|
33
|
+
#
|
34
|
+
AddType application/x-compress .Z
|
35
|
+
AddType application/x-gzip .gz .tgz
|
36
|
+
AddType application/x-bzip2 .bz2
|
37
|
+
|
38
|
+
#
|
39
|
+
# DefaultLanguage and AddLanguage allows you to specify the language of
|
40
|
+
# a document. You can then use content negotiation to give a browser a
|
41
|
+
# file in a language the user can understand.
|
42
|
+
#
|
43
|
+
# Specify a default language. This means that all data
|
44
|
+
# going out without a specific language tag (see below) will
|
45
|
+
# be marked with this one. You probably do NOT want to set
|
46
|
+
# this unless you are sure it is correct for all cases.
|
47
|
+
#
|
48
|
+
# * It is generally better to not mark a page as
|
49
|
+
# * being a certain language than marking it with the wrong
|
50
|
+
# * language!
|
51
|
+
#
|
52
|
+
# DefaultLanguage nl
|
53
|
+
#
|
54
|
+
# Note 1: The suffix does not have to be the same as the language
|
55
|
+
# keyword --- those with documents in Polish (whose net-standard
|
56
|
+
# language code is pl) may wish to use "AddLanguage pl .po" to
|
57
|
+
# avoid the ambiguity with the common suffix for perl scripts.
|
58
|
+
#
|
59
|
+
# Note 2: The example entries below illustrate that in some cases
|
60
|
+
# the two character 'Language' abbreviation is not identical to
|
61
|
+
# the two character 'Country' code for its country,
|
62
|
+
# E.g. 'Danmark/dk' versus 'Danish/da'.
|
63
|
+
#
|
64
|
+
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
|
65
|
+
# specifier. There is 'work in progress' to fix this and get
|
66
|
+
# the reference data for rfc1766 cleaned up.
|
67
|
+
#
|
68
|
+
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
|
69
|
+
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
|
70
|
+
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
|
71
|
+
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
|
72
|
+
# Norwegian (no) - Polish (pl) - Portugese (pt)
|
73
|
+
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
|
74
|
+
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
|
75
|
+
#
|
76
|
+
AddLanguage ca .ca
|
77
|
+
AddLanguage cs .cz .cs
|
78
|
+
AddLanguage da .dk
|
79
|
+
AddLanguage de .de
|
80
|
+
AddLanguage el .el
|
81
|
+
AddLanguage en .en
|
82
|
+
AddLanguage eo .eo
|
83
|
+
# See README.Debian for Spanish
|
84
|
+
AddLanguage es .es
|
85
|
+
AddLanguage et .et
|
86
|
+
AddLanguage fr .fr
|
87
|
+
AddLanguage he .he
|
88
|
+
AddLanguage hr .hr
|
89
|
+
AddLanguage it .it
|
90
|
+
AddLanguage ja .ja
|
91
|
+
AddLanguage ko .ko
|
92
|
+
AddLanguage ltz .ltz
|
93
|
+
AddLanguage nl .nl
|
94
|
+
AddLanguage nn .nn
|
95
|
+
AddLanguage no .no
|
96
|
+
AddLanguage pl .po
|
97
|
+
AddLanguage pt .pt
|
98
|
+
AddLanguage pt-BR .pt-br
|
99
|
+
AddLanguage ru .ru
|
100
|
+
AddLanguage sv .sv
|
101
|
+
# See README.Debian for Turkish
|
102
|
+
AddLanguage tr .tr
|
103
|
+
AddLanguage zh-CN .zh-cn
|
104
|
+
AddLanguage zh-TW .zh-tw
|
105
|
+
|
106
|
+
#
|
107
|
+
# Commonly used filename extensions to character sets. You probably
|
108
|
+
# want to avoid clashes with the language extensions, unless you
|
109
|
+
# are good at carefully testing your setup after each change.
|
110
|
+
# See http://www.iana.org/assignments/character-sets for the
|
111
|
+
# official list of charset names and their respective RFCs.
|
112
|
+
#
|
113
|
+
AddCharset us-ascii .ascii .us-ascii
|
114
|
+
AddCharset ISO-8859-1 .iso8859-1 .latin1
|
115
|
+
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
|
116
|
+
AddCharset ISO-8859-3 .iso8859-3 .latin3
|
117
|
+
AddCharset ISO-8859-4 .iso8859-4 .latin4
|
118
|
+
AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
|
119
|
+
AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
|
120
|
+
AddCharset ISO-8859-7 .iso8859-7 .grk .greek
|
121
|
+
AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
|
122
|
+
AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
|
123
|
+
AddCharset ISO-8859-10 .iso8859-10 .latin6
|
124
|
+
AddCharset ISO-8859-13 .iso8859-13
|
125
|
+
AddCharset ISO-8859-14 .iso8859-14 .latin8
|
126
|
+
AddCharset ISO-8859-15 .iso8859-15 .latin9
|
127
|
+
AddCharset ISO-8859-16 .iso8859-16 .latin10
|
128
|
+
AddCharset ISO-2022-JP .iso2022-jp .jis
|
129
|
+
AddCharset ISO-2022-KR .iso2022-kr .kis
|
130
|
+
AddCharset ISO-2022-CN .iso2022-cn .cis
|
131
|
+
AddCharset Big5 .Big5 .big5 .b5
|
132
|
+
AddCharset cn-Big5 .cn-big5
|
133
|
+
# For russian, more than one charset is used (depends on client, mostly):
|
134
|
+
AddCharset WINDOWS-1251 .cp-1251 .win-1251
|
135
|
+
AddCharset CP866 .cp866
|
136
|
+
AddCharset KOI8 .koi8
|
137
|
+
AddCharset KOI8-E .koi8-e
|
138
|
+
AddCharset KOI8-r .koi8-r .koi8-ru
|
139
|
+
AddCharset KOI8-U .koi8-u
|
140
|
+
AddCharset KOI8-ru .koi8-uk .ua
|
141
|
+
AddCharset ISO-10646-UCS-2 .ucs2
|
142
|
+
AddCharset ISO-10646-UCS-4 .ucs4
|
143
|
+
AddCharset UTF-7 .utf7
|
144
|
+
AddCharset UTF-8 .utf8
|
145
|
+
AddCharset UTF-16 .utf16
|
146
|
+
AddCharset UTF-16BE .utf16be
|
147
|
+
AddCharset UTF-16LE .utf16le
|
148
|
+
AddCharset UTF-32 .utf32
|
149
|
+
AddCharset UTF-32BE .utf32be
|
150
|
+
AddCharset UTF-32LE .utf32le
|
151
|
+
AddCharset euc-cn .euc-cn
|
152
|
+
AddCharset euc-gb .euc-gb
|
153
|
+
AddCharset euc-jp .euc-jp
|
154
|
+
AddCharset euc-kr .euc-kr
|
155
|
+
#Not sure how euc-tw got in - IANA doesn't list it???
|
156
|
+
AddCharset EUC-TW .euc-tw
|
157
|
+
AddCharset gb2312 .gb2312 .gb
|
158
|
+
AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
|
159
|
+
AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
|
160
|
+
AddCharset shift_jis .shift_jis .sjis
|
161
|
+
|
162
|
+
#
|
163
|
+
# AddHandler allows you to map certain file extensions to "handlers":
|
164
|
+
# actions unrelated to filetype. These can be either built into the server
|
165
|
+
# or added with the Action directive (see below)
|
166
|
+
#
|
167
|
+
# To use CGI scripts outside of ScriptAliased directories:
|
168
|
+
# (You will also need to add "ExecCGI" to the "Options" directive.)
|
169
|
+
#
|
170
|
+
#AddHandler cgi-script .cgi
|
171
|
+
|
172
|
+
#
|
173
|
+
# For files that include their own HTTP headers:
|
174
|
+
#
|
175
|
+
#AddHandler send-as-is asis
|
176
|
+
|
177
|
+
#
|
178
|
+
# For server-parsed imagemap files:
|
179
|
+
#
|
180
|
+
#AddHandler imap-file map
|
181
|
+
|
182
|
+
#
|
183
|
+
# For type maps (negotiated resources):
|
184
|
+
# (This is enabled by default to allow the Apache "It Worked" page
|
185
|
+
# to be distributed in multiple languages.)
|
186
|
+
#
|
187
|
+
AddHandler type-map var
|
188
|
+
|
189
|
+
#
|
190
|
+
# Filters allow you to process content before it is sent to the client.
|
191
|
+
#
|
192
|
+
# To parse .shtml files for server-side includes (SSI):
|
193
|
+
# (You will also need to add "Includes" to the "Options" directive.)
|
194
|
+
#
|
195
|
+
AddType text/html .shtml
|
196
|
+
AddOutputFilter INCLUDES .shtml
|
197
|
+
|
198
|
+
</IfModule>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<IfModule mod_negotiation.c>
|
2
|
+
#
|
3
|
+
# LanguagePriority allows you to give precedence to some languages
|
4
|
+
# in case of a tie during content negotiation.
|
5
|
+
#
|
6
|
+
# Just list the languages in decreasing order of preference. We have
|
7
|
+
# more or less alphabetized them here. You probably want to change this.
|
8
|
+
#
|
9
|
+
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv tr zh-CN zh-TW
|
10
|
+
|
11
|
+
#
|
12
|
+
# ForceLanguagePriority allows you to serve a result page rather than
|
13
|
+
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
|
14
|
+
# [in case no accepted languages matched the available variants]
|
15
|
+
#
|
16
|
+
ForceLanguagePriority Prefer Fallback
|
17
|
+
|
18
|
+
</IfModule>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<IfModule mod_php5.c>
|
2
|
+
<FilesMatch "\.ph(p3?|tml)$">
|
3
|
+
SetHandler application/x-httpd-php
|
4
|
+
</FilesMatch>
|
5
|
+
<FilesMatch "\.phps$">
|
6
|
+
SetHandler application/x-httpd-php-source
|
7
|
+
</FilesMatch>
|
8
|
+
# To re-enable php in user directories comment the following lines
|
9
|
+
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
|
10
|
+
# prevents .htaccess files from disabling it.
|
11
|
+
<IfModule mod_userdir.c>
|
12
|
+
<Directory /home/*/public_html>
|
13
|
+
php_admin_value engine Off
|
14
|
+
</Directory>
|
15
|
+
</IfModule>
|
16
|
+
</IfModule>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<IfModule mod_proxy.c>
|
2
|
+
#turning ProxyRequests on and allowing proxying from all may allow
|
3
|
+
#spammers to use your proxy to send email.
|
4
|
+
|
5
|
+
ProxyRequests Off
|
6
|
+
|
7
|
+
<Proxy *>
|
8
|
+
AddDefaultCharset off
|
9
|
+
Order deny,allow
|
10
|
+
Deny from all
|
11
|
+
#Allow from .example.com
|
12
|
+
</Proxy>
|
13
|
+
|
14
|
+
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
|
15
|
+
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
|
16
|
+
# Set to one of: Off | On | Full | Block
|
17
|
+
|
18
|
+
ProxyVia On
|
19
|
+
</IfModule>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<IfModule mod_setenvif.c>
|
2
|
+
|
3
|
+
#
|
4
|
+
# The following directives modify normal HTTP response behavior to
|
5
|
+
# handle known problems with browser implementations.
|
6
|
+
#
|
7
|
+
BrowserMatch "Mozilla/2" nokeepalive
|
8
|
+
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
|
9
|
+
BrowserMatch "RealPlayer 4\.0" force-response-1.0
|
10
|
+
BrowserMatch "Java/1\.0" force-response-1.0
|
11
|
+
BrowserMatch "JDK/1\.0" force-response-1.0
|
12
|
+
|
13
|
+
#
|
14
|
+
# The following directive disables redirects on non-GET requests for
|
15
|
+
# a directory that does not include the trailing slash. This fixes a
|
16
|
+
# problem with Microsoft WebFolders which does not appropriately handle
|
17
|
+
# redirects for folders with DAV methods.
|
18
|
+
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
|
19
|
+
#
|
20
|
+
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
|
21
|
+
BrowserMatch "MS FrontPage" redirect-carefully
|
22
|
+
BrowserMatch "^WebDrive" redirect-carefully
|
23
|
+
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
|
24
|
+
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
|
25
|
+
BrowserMatch "^XML Spy" redirect-carefully
|
26
|
+
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
|
27
|
+
|
28
|
+
</IfModule>
|
@@ -0,0 +1,76 @@
|
|
1
|
+
<IfModule mod_ssl.c>
|
2
|
+
#
|
3
|
+
# Pseudo Random Number Generator (PRNG):
|
4
|
+
# Configure one or more sources to seed the PRNG of the SSL library.
|
5
|
+
# The seed data should be of good random quality.
|
6
|
+
# WARNING! On some platforms /dev/random blocks if not enough entropy
|
7
|
+
# is available. This means you then cannot use the /dev/random device
|
8
|
+
# because it would lead to very long connection times (as long as
|
9
|
+
# it requires to make more entropy available). But usually those
|
10
|
+
# platforms additionally provide a /dev/urandom device which doesn't
|
11
|
+
# block. So, if available, use this one instead. Read the mod_ssl User
|
12
|
+
# Manual for more details.
|
13
|
+
#
|
14
|
+
SSLRandomSeed startup builtin
|
15
|
+
SSLRandomSeed startup file:/dev/urandom 512
|
16
|
+
SSLRandomSeed connect builtin
|
17
|
+
SSLRandomSeed connect file:/dev/urandom 512
|
18
|
+
|
19
|
+
##
|
20
|
+
## SSL Global Context
|
21
|
+
##
|
22
|
+
## All SSL configuration in this context applies both to
|
23
|
+
## the main server and all SSL-enabled virtual hosts.
|
24
|
+
##
|
25
|
+
|
26
|
+
#
|
27
|
+
# Some MIME-types for downloading Certificates and CRLs
|
28
|
+
#
|
29
|
+
AddType application/x-x509-ca-cert .crt
|
30
|
+
AddType application/x-pkcs7-crl .crl
|
31
|
+
|
32
|
+
# Pass Phrase Dialog:
|
33
|
+
# Configure the pass phrase gathering process.
|
34
|
+
# The filtering dialog program (`builtin' is a internal
|
35
|
+
# terminal dialog) has to provide the pass phrase on stdout.
|
36
|
+
SSLPassPhraseDialog builtin
|
37
|
+
|
38
|
+
# Inter-Process Session Cache:
|
39
|
+
# Configure the SSL Session Cache: First the mechanism
|
40
|
+
# to use and second the expiring timeout (in seconds).
|
41
|
+
#SSLSessionCache dbm:/var/run/apache2/ssl_scache
|
42
|
+
<% if %w{ redhat centos scientific fedora amazon }.include?(node['platform']) -%>
|
43
|
+
SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000)
|
44
|
+
<% elsif node['platform'] == "freebsd" -%>
|
45
|
+
SSLSessionCache shmcb:/var/run/ssl_scache(512000)
|
46
|
+
<% else -%>
|
47
|
+
SSLSessionCache shmcb:/var/run/apache2/ssl_scache
|
48
|
+
<% end -%>
|
49
|
+
SSLSessionCacheTimeout 300
|
50
|
+
|
51
|
+
# Semaphore:
|
52
|
+
# Configure the path to the mutual exclusion semaphore the
|
53
|
+
# SSL engine uses internally for inter-process synchronization.
|
54
|
+
<% if %w{ redhat centos scientific fedora amazon }.include?(node['platform']) -%>
|
55
|
+
SSLMutex default
|
56
|
+
<% elsif node['platform'] == "freebsd" -%>
|
57
|
+
SSLMutex file:/var/run/ssl_mutex
|
58
|
+
<% else -%>
|
59
|
+
SSLMutex file:/var/run/apache2/ssl_mutex
|
60
|
+
<% end -%>
|
61
|
+
|
62
|
+
# SSL Cipher Suite:
|
63
|
+
# List the ciphers that the client is permitted to negotiate.
|
64
|
+
# See the mod_ssl documentation for a complete list.
|
65
|
+
# enable only secure ciphers:
|
66
|
+
SSLCipherSuite HIGH:MEDIUM:!ADH
|
67
|
+
# Use this instead if you want to allow cipher upgrades via SGC facility.
|
68
|
+
# In this case you also have to use something like
|
69
|
+
# SSLRequire %{SSL_CIPHER_USEKEYSIZE} >= 128
|
70
|
+
# see http://httpd.apache.org/docs/2.2/ssl/ssl_howto.html.en#upgradeenc
|
71
|
+
#SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
|
72
|
+
|
73
|
+
# enable only secure protocols: SSLv3 and TLSv1, but not SSLv2
|
74
|
+
SSLProtocol all -SSLv2
|
75
|
+
|
76
|
+
</IfModule>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<IfModule mod_status.c>
|
2
|
+
#
|
3
|
+
# Allow server status reports generated by mod_status,
|
4
|
+
# with the URL of http://servername/server-status
|
5
|
+
# Uncomment and change the ".example.com" to allow
|
6
|
+
# access from other hosts.
|
7
|
+
#
|
8
|
+
<Location /server-status>
|
9
|
+
SetHandler server-status
|
10
|
+
Order deny,allow
|
11
|
+
Deny from all
|
12
|
+
Allow from localhost ip6-localhost
|
13
|
+
# Allow from .example.com
|
14
|
+
</Location>
|
15
|
+
#
|
16
|
+
# ExtendedStatus controls whether Apache will generate "full" status
|
17
|
+
# information (ExtendedStatus On) or just basic information (ExtendedStatus
|
18
|
+
# Off) when the "server-status" handler is called. The default is Off.
|
19
|
+
#
|
20
|
+
<% if node['apache']['ext_status'] %>
|
21
|
+
ExtendedStatus On
|
22
|
+
<% else -%>
|
23
|
+
ExtendedStatus Off
|
24
|
+
<% end -%>
|
25
|
+
#
|
26
|
+
</IfModule>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
#
|
2
|
+
# Disable access to the entire file system except for the directories that
|
3
|
+
# are explicitly allowed later.
|
4
|
+
#
|
5
|
+
# This currently breaks the configurations that come with some web application
|
6
|
+
# Debian packages. It will be made the default for the release after lenny.
|
7
|
+
#
|
8
|
+
#<Directory />
|
9
|
+
# AllowOverride None
|
10
|
+
# Order Deny,Allow
|
11
|
+
# Deny from all
|
12
|
+
#</Directory>
|
13
|
+
|
14
|
+
|
15
|
+
# Changing the following options will not really affect the security of the
|
16
|
+
# server, but might make attacks slightly more difficult in some cases.
|
17
|
+
|
18
|
+
#
|
19
|
+
# ServerTokens
|
20
|
+
# This directive configures what you return as the Server HTTP response
|
21
|
+
# Header. The default is 'Full' which sends information about the OS-Type
|
22
|
+
# and compiled in modules.
|
23
|
+
# Set to one of: Full | OS | Minimal | Minor | Major | Prod
|
24
|
+
# where Full conveys the most information, and Prod the least.
|
25
|
+
#
|
26
|
+
#ServerTokens Minimal
|
27
|
+
ServerTokens <%= node['apache']['servertokens'] %>
|
28
|
+
|
29
|
+
#
|
30
|
+
# Optionally add a line containing the server version and virtual host
|
31
|
+
# name to server-generated pages (internal error documents, FTP directory
|
32
|
+
# listings, mod_status and mod_info output etc., but not CGI generated
|
33
|
+
# documents or custom error documents).
|
34
|
+
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
|
35
|
+
# Set to one of: On | Off | EMail
|
36
|
+
#
|
37
|
+
#ServerSignature Off
|
38
|
+
ServerSignature <%= node['apache']['serversignature'] %>
|
39
|
+
|
40
|
+
#
|
41
|
+
# Allow TRACE method
|
42
|
+
#
|
43
|
+
# Set to "extended" to also reflect the request body (only for testing and
|
44
|
+
# diagnostic purposes).
|
45
|
+
#
|
46
|
+
# Set to one of: On | Off | extended
|
47
|
+
#
|
48
|
+
#TraceEnable Off
|
49
|
+
TraceEnable <%= node['apache']['traceenable'] %>
|
50
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<VirtualHost *:80>
|
2
|
+
ServerName <%= @params[:server_name] %>
|
3
|
+
ServerAlias <% @params[:server_aliases].each do |a| %><%= "#{a}" %> <% end %>
|
4
|
+
DocumentRoot <%= @params[:docroot] %>
|
5
|
+
RewriteEngine On
|
6
|
+
|
7
|
+
<Directory <%= @params[:docroot] %>>
|
8
|
+
Options FollowSymLinks
|
9
|
+
AllowOverride None
|
10
|
+
Order allow,deny
|
11
|
+
Allow from all
|
12
|
+
</Directory>
|
13
|
+
|
14
|
+
<Directory />
|
15
|
+
Options FollowSymLinks
|
16
|
+
AllowOverride None
|
17
|
+
</Directory>
|
18
|
+
|
19
|
+
<Location /server-status>
|
20
|
+
SetHandler server-status
|
21
|
+
|
22
|
+
Order Deny,Allow
|
23
|
+
Deny from all
|
24
|
+
Allow from 127.0.0.1
|
25
|
+
</Location>
|
26
|
+
|
27
|
+
LogLevel info
|
28
|
+
ErrorLog <%= node['apache']['log_dir'] %>/<%= @params[:name] %>-error.log
|
29
|
+
CustomLog <%= node['apache']['log_dir'] %>/<%= @params[:name] %>-access.log combined
|
30
|
+
|
31
|
+
RewriteEngine On
|
32
|
+
RewriteLog <%= node['apache']['log_dir'] %>/<%= @application_name %>-rewrite.log
|
33
|
+
RewriteLogLevel 0
|
34
|
+
|
35
|
+
# Canonical host, <%= @params[:server_name] %>
|
36
|
+
RewriteCond %{HTTP_HOST} !^<%= @params[:server_name] %> [NC]
|
37
|
+
RewriteCond %{HTTP_HOST} !^$
|
38
|
+
RewriteRule ^/(.*)$ http://<%= @params[:server_name] %>/$1 [L,R=301]
|
39
|
+
|
40
|
+
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
|
41
|
+
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
|
42
|
+
RewriteRule ^.*$ /system/maintenance.html [L]
|
43
|
+
</VirtualHost>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
## v1.3.2:
|
2
|
+
|
3
|
+
* [COOK-2069] - build-essential will install osx-gcc-installer when
|
4
|
+
Xcode is present
|
5
|
+
|
6
|
+
## v1.3.0:
|
7
|
+
|
8
|
+
* [COOK-1895] - support smartos
|
9
|
+
|
10
|
+
## v1.2.0:
|
11
|
+
|
12
|
+
* Add test-kitchen support (source repo only)
|
13
|
+
* [COOK-1677] - build-essential cookbook support for OpenSuse and SLES
|
14
|
+
* [COOK-1718] - build-essential cookbook metadata should include scientific
|
15
|
+
* [COOK-1768] - The apt-get update in build-essentials needs to be renamed
|
16
|
+
|
17
|
+
## v1.1.2:
|
18
|
+
|
19
|
+
* [COOK-1620] - support OS X 10.8
|
20
|
+
|
21
|
+
## v1.1.0:
|
22
|
+
|
23
|
+
* [COOK-1098] - support amazon linux
|
24
|
+
* [COOK-1149] - support Mac OS X
|
25
|
+
* [COOK-1296] - allow for compile-time installation of packages
|
26
|
+
through an attribute (see README)
|
27
|
+
|
28
|
+
## v1.0.2:
|
29
|
+
|
30
|
+
* [COOK-1098] - Add Amazon Linux platform support
|
31
|
+
* [COOK-1149] - Add OS X platform support
|
@@ -0,0 +1,29 @@
|
|
1
|
+
If you would like to contribute, please open a ticket in JIRA:
|
2
|
+
|
3
|
+
* http://tickets.opscode.com
|
4
|
+
|
5
|
+
Create the ticket in the COOK project and use the cookbook name as the
|
6
|
+
component.
|
7
|
+
|
8
|
+
For all code contributions, we ask that contributors sign a
|
9
|
+
contributor license agreement (CLA). Instructions may be found here:
|
10
|
+
|
11
|
+
* http://wiki.opscode.com/display/chef/How+to+Contribute
|
12
|
+
|
13
|
+
When contributing changes to individual cookbooks, please do not
|
14
|
+
modify the version number in the metadata.rb. Also please do not
|
15
|
+
update the CHANGELOG.md for a new version. Not all changes to a
|
16
|
+
cookbook may be merged and released in the same versions. Opscode will
|
17
|
+
handle the version updates during the release process. You are welcome
|
18
|
+
to correct typos or otherwise make updates to documentation in the
|
19
|
+
README.
|
20
|
+
|
21
|
+
If a contribution adds new platforms or platform versions, indicate
|
22
|
+
such in the body of the commit message(s), and update the relevant
|
23
|
+
COOK ticket. When writing commit messages, it is helpful for others if
|
24
|
+
you indicate the COOK ticket. For example:
|
25
|
+
|
26
|
+
git commit -m '[COOK-1041] Updated pool resource to correctly delete.'
|
27
|
+
|
28
|
+
In the ticket itself, it is also helpful if you include log output of
|
29
|
+
a successful Chef run, but this is not absolutely required.
|