Files
zulip/servers/puppet/modules/zulip/manifests/app_frontend.pp
Kevin Mehall c65d3d5127 [manual] Add dependency on PIL (python-imaging)
Locally, use:
  apt-get install python-imaging
or
  pip install pil

(imported from commit fb1f897cf4098d777c645a5780f937a3e54b6dcf)
2013-10-29 11:42:33 -04:00

71 lines
2.4 KiB
Puppet

class zulip::app_frontend {
class { 'zulip::rabbit': }
class { 'zulip::nginx': }
class { 'zulip::supervisor': }
$web_packages = [ "memcached", "python-pylibmc", "python-tornado", "python-django",
"python-pygments", "python-flup", "python-psycopg2",
"yui-compressor", "python-django-auth-openid",
"python-django-statsd-mozilla", "python-dns",
"build-essential", "libssl-dev", "python-ujson",
"python-defusedxml", "python-twitter",
"python-twisted", "python-markdown",
"python-django-south", "python-mock", "python-pika",
"python-django-pipeline", "hunspell-en-us",
"python-django-bitfield", "python-embedly",
"python-postmonkey", "python-django-jstemplate",
"redis-server", "python-redis", "python-django-guardian",
"python-diff-match-patch", "python-sourcemap", "python-mandrill",
"python-sockjs-tornado", "python-apns-client", "python-imaging"]
package { $web_packages: ensure => "installed" }
file { "/etc/nginx/zulip-include/":
require => Package[nginx],
recurse => true,
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/zulip/nginx/zulip-include/",
notify => Service["nginx"],
}
file { "/etc/memcached.conf":
require => Package[memcached],
ensure => file,
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/zulip/memcached.conf",
}
file { "/etc/supervisor/conf.d/zulip.conf":
require => Package[supervisor],
ensure => file,
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/zulip/supervisor/conf.d/zulip.conf",
notify => Service["supervisor"],
}
file { "/home/zulip/tornado":
ensure => directory,
owner => "zulip",
group => "zulip",
mode => 755,
}
file { "/etc/redis/redis.conf":
require => Package[redis-server],
ensure => file,
owner => "root",
group => "root",
mode => 644,
source => "puppet:///modules/zulip/redis/redis.conf",
}
service { 'redis-server':
ensure => running,
subscribe => File['/etc/redis/redis.conf'],
}
service { 'memcached':
ensure => running,
subscribe => File['/etc/memcached.conf'],
}
}