mirror of
https://github.com/zulip/docker-zulip.git
synced 2025-11-21 15:09:14 +00:00
Some more clean up
Reformatted the puppet manifests Removed two uneeded cron jobs
This commit is contained in:
@@ -11,7 +11,6 @@ RUN apt-get -qq update -q && \
|
|||||||
wget -q -O /root/zulip-ppa.asc https://zulip.com/dist/keys/zulip-ppa.asc && \
|
wget -q -O /root/zulip-ppa.asc https://zulip.com/dist/keys/zulip-ppa.asc && \
|
||||||
apt-key add /root/zulip-ppa.asc && \
|
apt-key add /root/zulip-ppa.asc && \
|
||||||
echo "deb http://ppa.launchpad.net/tabbott/zulip/ubuntu trusty main" > /etc/apt/sources.list.d/zulip.list && \
|
echo "deb http://ppa.launchpad.net/tabbott/zulip/ubuntu trusty main" > /etc/apt/sources.list.d/zulip.list && \
|
||||||
echo "deb-src http://ppa.launchpad.net/tabbott/zulip/ubuntu trusty main" >> /etc/apt/sources.list.d/zulip.list && \
|
|
||||||
apt-get -qq update && \
|
apt-get -qq update && \
|
||||||
apt-get -qq dist-upgrade -y && \
|
apt-get -qq dist-upgrade -y && \
|
||||||
mkdir -p "/root/zulip" "/etc/zulip" "$DATA_DIR" && \
|
mkdir -p "/root/zulip" "/etc/zulip" "$DATA_DIR" && \
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
# Edit this file to introduce tasks to be run by cron.
|
|
||||||
#
|
|
||||||
# Each task to run has to be defined through a single line
|
|
||||||
# indicating with different fields when the task will be run
|
|
||||||
# and what command to run for the task
|
|
||||||
#
|
|
||||||
# To define the time you can provide concrete values for
|
|
||||||
# minute (m), hour (h), day of month (dom), month (mon),
|
|
||||||
# and day of week (dow) or use '*' in these fields (for 'any').#
|
|
||||||
# Notice that tasks will be started based on the cron's system
|
|
||||||
# daemon's notion of time and timezones.
|
|
||||||
#
|
|
||||||
# Output of the crontab jobs (including errors) is sent through
|
|
||||||
# email to the user the crontab file belongs to (unless redirected).
|
|
||||||
#
|
|
||||||
# For example, you can run a backup of all your user accounts
|
|
||||||
# at 5 a.m every week with:
|
|
||||||
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
|
|
||||||
#
|
|
||||||
# For more information see the manual pages of crontab(5) and cron(8)
|
|
||||||
#
|
|
||||||
# m h dom mon dow command
|
|
||||||
SHELL=/bin/bash
|
|
||||||
|
|
||||||
* * * * * root /home/zulip/deployments/current/bots/check-rabbitmq-queue &> /var/lib/nagios_state/check-rabbitmq-results-tmp; mv /var/lib/nagios_state/check-rabbitmq-results-tmp /var/lib/nagios_state/check-rabbitmq-results
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
SHELL=/bin/bash
|
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
||||||
USER=zulip
|
|
||||||
|
|
||||||
0 6 * * 7 zulip supervisorctl restart all
|
|
||||||
@@ -3,7 +3,8 @@ class zulip::app_frontend {
|
|||||||
include zulip::nginx
|
include zulip::nginx
|
||||||
include zulip::supervisor
|
include zulip::supervisor
|
||||||
|
|
||||||
$web_packages = [ # Needed for memcached usage
|
$web_packages = [
|
||||||
|
# Needed for memcached usage
|
||||||
"python-pylibmc",
|
"python-pylibmc",
|
||||||
# Fast JSON parser
|
# Fast JSON parser
|
||||||
"python-ujson",
|
"python-ujson",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
class zulip::base {
|
class zulip::base {
|
||||||
include apt
|
include apt
|
||||||
$base_packages = [ # Dependencies of our API
|
$base_packages = [
|
||||||
|
# Dependencies of our API
|
||||||
"python-requests",
|
"python-requests",
|
||||||
"python-simplejson",
|
"python-simplejson",
|
||||||
]
|
]
|
||||||
package { $base_packages: ensure => "installed" }
|
package { $base_packages: ensure => "installed" }
|
||||||
|
|
||||||
group { 'zulip':
|
group { 'zulip':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
class zulip::nginx {
|
class zulip::nginx {
|
||||||
$web_packages = [# Needed to run nginx with the modules we use
|
$web_packages = [
|
||||||
|
# Needed to run nginx with the modules we use
|
||||||
"nginx-full",
|
"nginx-full",
|
||||||
]
|
]
|
||||||
package { $web_packages: ensure => "installed" }
|
package { $web_packages: ensure => "installed" }
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ class zulip::postgres_appdb {
|
|||||||
include zulip::postgres_common
|
include zulip::postgres_common
|
||||||
include zulip::supervisor
|
include zulip::supervisor
|
||||||
|
|
||||||
$appdb_packages = [# Needed to run process_fts_updates
|
$appdb_packages = [
|
||||||
|
# Needed to run process_fts_updates
|
||||||
"python-psycopg2",
|
"python-psycopg2",
|
||||||
# Needed for our full text search system
|
# Needed for our full text search system
|
||||||
"postgresql-9.3-tsearch-extras",
|
"postgresql-9.3-tsearch-extras",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
class zulip::postgres_common {
|
class zulip::postgres_common {
|
||||||
$postgres_packages = [# Python modules used in our monitoring/worker threads
|
$postgres_packages = [
|
||||||
|
# Python modules used in our monitoring/worker threads
|
||||||
"python-gevent",
|
"python-gevent",
|
||||||
"python-tz",
|
"python-tz",
|
||||||
"python-dateutil",
|
"python-dateutil",
|
||||||
|
|||||||
@@ -1,19 +1,11 @@
|
|||||||
class zulip::rabbit {
|
class zulip::rabbit {
|
||||||
$rabbit_packages = [# Needed to run rabbitmq
|
$rabbit_packages = [
|
||||||
|
# Needed to run rabbitmq
|
||||||
"erlang-base",
|
"erlang-base",
|
||||||
"rabbitmq-server",
|
"rabbitmq-server",
|
||||||
]
|
]
|
||||||
package { $rabbit_packages: ensure => "installed" }
|
package { $rabbit_packages: ensure => "installed" }
|
||||||
|
|
||||||
file { "/etc/cron.d/rabbitmq-queuesize":
|
|
||||||
require => Package[rabbitmq-server],
|
|
||||||
ensure => file,
|
|
||||||
owner => "root",
|
|
||||||
group => "root",
|
|
||||||
mode => 644,
|
|
||||||
source => "puppet:///modules/zulip/cron.d/rabbitmq-queuesize",
|
|
||||||
}
|
|
||||||
|
|
||||||
file { "/etc/cron.d/rabbitmq-numconsumers":
|
file { "/etc/cron.d/rabbitmq-numconsumers":
|
||||||
require => Package[rabbitmq-server],
|
require => Package[rabbitmq-server],
|
||||||
ensure => file,
|
ensure => file,
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
class zulip::supervisor {
|
class zulip::supervisor {
|
||||||
$supervisor_packages = [# Needed to run supervisor
|
$supervisor_packages = [
|
||||||
|
# Needed to run supervisor
|
||||||
"supervisor",
|
"supervisor",
|
||||||
]
|
]
|
||||||
package { $supervisor_packages: ensure => "installed" }
|
package { $supervisor_packages: ensure => "installed" }
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ class zulip::voyager {
|
|||||||
mode => 644,
|
mode => 644,
|
||||||
source => "puppet:///modules/zulip/nginx/sites-available/zulip-enterprise",
|
source => "puppet:///modules/zulip/nginx/sites-available/zulip-enterprise",
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/nginx/sites-enabled/zulip-enterprise':
|
file { '/etc/nginx/sites-enabled/zulip-enterprise':
|
||||||
require => Package["nginx-full"],
|
require => Package["nginx-full"],
|
||||||
ensure => 'link',
|
ensure => 'link',
|
||||||
@@ -33,14 +34,6 @@ class zulip::voyager {
|
|||||||
group => 'zulip',
|
group => 'zulip',
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/etc/cron.d/restart-zulip":
|
|
||||||
ensure => file,
|
|
||||||
owner => "root",
|
|
||||||
group => "root",
|
|
||||||
mode => 644,
|
|
||||||
source => "puppet:///modules/zulip/cron.d/restart-zulip",
|
|
||||||
}
|
|
||||||
|
|
||||||
file { "/etc/supervisor/conf.d/zulip_postsetup.conf":
|
file { "/etc/supervisor/conf.d/zulip_postsetup.conf":
|
||||||
require => Package[supervisor],
|
require => Package[supervisor],
|
||||||
ensure => file,
|
ensure => file,
|
||||||
|
|||||||
Reference in New Issue
Block a user