Puppetize nginx.conf

Fixes #201.

(imported from commit 0feaff372d94009fa51dabf2bda55062826e2ed5)
This commit is contained in:
Keegan McAllister 2012-12-03 15:48:09 -05:00
parent 82475afe82
commit ed0cb0a5f8
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,31 @@
user humbug;
# The rest of the file is the non-commented part of the Debian default config.
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

View File

@ -203,6 +203,14 @@ class humbug_apache_base {
class humbug_app_frontend {
$web_packages = [ "nginx", "memcached", "python-pylibmc", ]
package { $web_packages: ensure => "installed" }
file { "/etc/nginx/nginx.conf":
require => Package[nginx],
ensure => file,
owner => "root",
group => "root",
mode => 644,
source => "/root/humbug/servers/puppet/files/nginx/nginx.conf",
}
file { "/etc/nginx/sites-available/humbug":
require => Package[nginx],
ensure => file,