mirror of https://github.com/zulip/zulip.git
Break out prod and staging configs.
(imported from commit fa1ca155422031906bed4b50ac21bb41102ab960)
This commit is contained in:
parent
c13ac407e2
commit
b8a4aa9ef3
|
@ -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.
|
||||
|
|
|
@ -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/.
|
||||
|
||||
}
|
|
@ -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',
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue