This repository has been archived by the owner on Nov 25, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the very skeleton of a Chef config as an example.
- Loading branch information
Showing
8 changed files
with
160 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Apache conf (/etc/apache2/apache2.conf) | ||
|
||
# | ||
# Basic server setup | ||
# | ||
ServerRoot "/etc/apache2" | ||
PidFile ${APACHE_PID_FILE} | ||
User ${APACHE_RUN_USER} | ||
Group ${APACHE_RUN_GROUP} | ||
ServerTokens ProductOnly | ||
ServerAdmin someone@example.com | ||
|
||
# Standalone server. | ||
Listen *:80 | ||
|
||
# | ||
# Worker MPM features | ||
# | ||
|
||
Timeout 60 | ||
StartServers 2 | ||
ServerLimit 5 | ||
MinSpareThreads 2 | ||
MaxSpareThreads 4 | ||
ThreadLimit 10 | ||
ThreadsPerChild 10 | ||
MaxClients 50 | ||
MaxRequestsPerChild 10000 | ||
|
||
# | ||
# Modules | ||
# | ||
|
||
LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so | ||
LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so | ||
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so | ||
|
||
# | ||
# Logging | ||
# | ||
|
||
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined | ||
ErrorLog /var/log/apache2/error.log | ||
CustomLog /var/log/apache2/access.log combined | ||
|
||
# | ||
# Default HTTP features | ||
# | ||
|
||
AddDefaultCharset utf-8 | ||
DefaultType text/plain | ||
TypesConfig /etc/mime.types | ||
|
||
# | ||
# Basic document root and directory perms. | ||
# | ||
|
||
<Directory /> | ||
Options FollowSymLinks | ||
AllowOverride None | ||
</Directory> | ||
|
||
DocumentRoot "/home/web/static" | ||
|
||
# | ||
# And finally the app config. | ||
# | ||
|
||
WSGIScriptAlias / "/home/web/myblog/mingus.wsgi" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package "git-core" | ||
package "python-dev" | ||
package "python-setuptools" | ||
package "postgresql-dev" | ||
package "postgresql-client" | ||
package "build-essential" | ||
package "libpq-dev" | ||
package "subversion" | ||
package "mercurial" | ||
|
||
cookbook_file "/etc/apache2/apache2.conf" do | ||
source "apache2.conf" | ||
owner "root" | ||
group "root" | ||
mode "644" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"run_list": ["web::default"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
log_level :info | ||
cookbook_path "/etc/chef/cookbooks" | ||
json_attribs "/etc/chef/node.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters