zulip/servers/puppet/modules/humbug/manifests/app_frontend.pp

46 lines
1.4 KiB
Puppet

class humbug::app_frontend {
class { 'humbug::base': }
class { 'humbug::rabbit': }
$web_packages = [ "nginx", "memcached", "python-pylibmc", "python-tornado", "python-django",
"python-pygments", "python-flup", "ipython", "python-psycopg2",
"yui-compressor", "python-django-auth-openid"]
package { $web_packages: ensure => "installed" }
file { "/etc/nginx/nginx.conf":
require => Package[nginx],
ensure => file,
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/humbug/nginx/nginx.conf",
}
file { "/etc/nginx/humbug-include/":
require => Package[nginx],
recurse => true,
owner => "root",
group => "root",
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",
}
exec {"pip6":
command => "/usr/bin/pip install django-pipeline",
creates => "/usr/local/lib/python2.6/dist-packages/pipeline",
require => Package['python-pip'],
}
# TODO: Add /usr/lib/nagios/plugins/check_send_receive_time ->
# /home/humbug/humbug/api/humbug/bots/check_send_receive.py symlink
# TODO: Setup the API distribution directory at /srv/www/dist/api/.
}