Break out prod and staging configs.

(imported from commit fa1ca155422031906bed4b50ac21bb41102ab960)
This commit is contained in:
Luke Faraone 2013-05-28 18:22:56 -04:00
parent c13ac407e2
commit b8a4aa9ef3
3 changed files with 37 additions and 17 deletions

View File

@ -31,21 +31,6 @@ class humbug::app_frontend {
mode => 644,
source => "puppet:///modules/humbug/nginx/humbug-include/",
}
file { "/etc/nginx/sites-available/humbug":
require => Package[nginx],
ensure => file,
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/humbug/nginx/sites-available/humbug",
}
file { '/etc/nginx/sites-enabled/humbug':
ensure => 'link',
target => '/etc/nginx/sites-available/humbug',
}
file { "/etc/memcached.conf":
require => Package[memcached],
ensure => file,
@ -92,8 +77,6 @@ class humbug::app_frontend {
# TODO: Add /usr/lib/nagios/plugins/check_send_receive_time ->
# /home/humbug/humbug-deployments/current/api/humbug/bots/check_send_receive.py symlink
# TODO: Setup the API distribution directory at /srv/www/dist/api/.
# TODO: Ensure Django 1.5 is installed; this should be possible via
# the backports-sloppy mechanism or via backports once we upgrade to
# wheezy.

View File

@ -0,0 +1,20 @@
class humbug::prod_app_frontend {
class { 'humbug::app_frontend': }
file { "/etc/nginx/sites-available/humbug":
require => Package[nginx],
ensure => file,
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/humbug/nginx/sites-available/humbug",
}
file { '/etc/nginx/sites-enabled/humbug':
ensure => 'link',
target => '/etc/nginx/sites-available/humbug',
}
# TODO: Setup the API distribution directory at /srv/www/dist/api/.
}

View File

@ -0,0 +1,17 @@
class humbug::staging_app_frontend {
class { 'humbug::app_frontend': }
file { "/etc/nginx/sites-available/humbug-staging":
require => Package[nginx],
ensure => file,
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/humbug/nginx/sites-available/humbug-staging",
}
file { '/etc/nginx/sites-enabled/humbug-staging':
ensure => 'link',
target => '/etc/nginx/sites-available/humbug-staging',
}
}