mirror of https://github.com/zulip/zulip.git
[manual] Rename /home/humbug to /home/zulip.
This may require just doing an mv on the home directory, plus changing the home directory in /etc/passwd. It should of course be done carefully. (imported from commit 660997d897ee6d33563af74f0fc5d4267a911755)
This commit is contained in:
parent
b76bbc4982
commit
e11ae77ba6
|
@ -22,7 +22,7 @@ parser.add_option('--sharded',
|
||||||
action='store_true')
|
action='store_true')
|
||||||
parser.add_option('--root-path',
|
parser.add_option('--root-path',
|
||||||
dest='root_path',
|
dest='root_path',
|
||||||
default="/home/humbug",
|
default="/home/zulip",
|
||||||
action='store')
|
action='store')
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
|
|
|
@ -10,18 +10,18 @@ ccache_data_encoded = sys.argv[3]
|
||||||
|
|
||||||
# Update the Kerberos ticket cache file
|
# Update the Kerberos ticket cache file
|
||||||
program_name = "zmirror-%s" % (short_user,)
|
program_name = "zmirror-%s" % (short_user,)
|
||||||
with file("/home/humbug/ccache/%s" % (program_name,), "w") as f:
|
with file("/home/zulip/ccache/%s" % (program_name,), "w") as f:
|
||||||
f.write(base64.b64decode(ccache_data_encoded))
|
f.write(base64.b64decode(ccache_data_encoded))
|
||||||
|
|
||||||
# Setup API key
|
# Setup API key
|
||||||
api_key_path = "/home/humbug/api-keys/%s" % (program_name,)
|
api_key_path = "/home/zulip/api-keys/%s" % (program_name,)
|
||||||
file(api_key_path, "w").write(api_key + "\n")
|
file(api_key_path, "w").write(api_key + "\n")
|
||||||
|
|
||||||
# Setup supervisord configuration
|
# Setup supervisord configuration
|
||||||
supervisor_path = "/etc/supervisor/conf.d/%s.conf" % (program_name,)
|
supervisor_path = "/etc/supervisor/conf.d/%s.conf" % (program_name,)
|
||||||
template = "/home/humbug/zulip/bots/zmirror_private.conf.template"
|
template = "/home/zulip/zulip/bots/zmirror_private.conf.template"
|
||||||
template_data = file(template).read()
|
template_data = file(template).read()
|
||||||
session_path = "/home/humbug/zephyr_sessions/%s" % (program_name,)
|
session_path = "/home/zulip/zephyr_sessions/%s" % (program_name,)
|
||||||
|
|
||||||
# Preserve mail zephyrs forwarding setting across rewriting the config file
|
# Preserve mail zephyrs forwarding setting across rewriting the config file
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ def fetch_public_streams():
|
||||||
return public_streams
|
return public_streams
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
log_file = "/home/humbug/sync_public_streams.log"
|
log_file = "/home/zulip/sync_public_streams.log"
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
log_format = "%(asctime)s: %(message)s"
|
log_format = "%(asctime)s: %(message)s"
|
||||||
logging.basicConfig(format=log_format)
|
logging.basicConfig(format=log_format)
|
||||||
|
@ -59,9 +59,9 @@ if __name__ == "__main__":
|
||||||
if public_streams is None:
|
if public_streams is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
f = file("/home/humbug/public_streams.tmp", "w")
|
f = file("/home/zulip/public_streams.tmp", "w")
|
||||||
f.write(simplejson.dumps(list(public_streams)) + "\n")
|
f.write(simplejson.dumps(list(public_streams)) + "\n")
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
subprocess.call(["mv", "/home/humbug/public_streams.tmp", "/home/humbug/public_streams"])
|
subprocess.call(["mv", "/home/zulip/public_streams.tmp", "/home/zulip/public_streams"])
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ if options.sync_subscriptions:
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if options.forward_class_messages and not options.noshard:
|
if options.forward_class_messages and not options.noshard:
|
||||||
sys.path.append("/home/humbug/zulip")
|
sys.path.append("/home/zulip/zulip")
|
||||||
if options.on_startup_command is not None:
|
if options.on_startup_command is not None:
|
||||||
subprocess.call([options.on_startup_command])
|
subprocess.call([options.on_startup_command])
|
||||||
from zerver.lib.parallel import run_parallel
|
from zerver.lib.parallel import run_parallel
|
||||||
|
|
|
@ -960,7 +960,7 @@ def parse_args():
|
||||||
help=optparse.SUPPRESS_HELP)
|
help=optparse.SUPPRESS_HELP)
|
||||||
parser.add_option('--stream-file-path',
|
parser.add_option('--stream-file-path',
|
||||||
dest='stream_file_path',
|
dest='stream_file_path',
|
||||||
default="/home/humbug/public_streams",
|
default="/home/zulip/public_streams",
|
||||||
help=optparse.SUPPRESS_HELP)
|
help=optparse.SUPPRESS_HELP)
|
||||||
parser.add_option('--no-forward-personals',
|
parser.add_option('--no-forward-personals',
|
||||||
dest='forward_personals',
|
dest='forward_personals',
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
env KRB5CCNAME=/tmp/krb5cc_1000.tmp kinit -k -t /home/humbug/tabbott.extra.keytab tabbott/extra@ATHENA.MIT.EDU; mv /tmp/krb5cc_1000.tmp /tmp/krb5cc_1000
|
env KRB5CCNAME=/tmp/krb5cc_1000.tmp kinit -k -t /home/zulip/tabbott.extra.keytab tabbott/extra@ATHENA.MIT.EDU; mv /tmp/krb5cc_1000.tmp /tmp/krb5cc_1000
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[program:zmirror-USERNAME]
|
[program:zmirror-USERNAME]
|
||||||
command=python /home/humbug/zulip/bots/zephyr_mirror_backend.py --root-path=/home/humbug/zulip/bots --user=USERNAME --log-path=/home/humbug/logs/mirror-log-%(program_name)s --use-sessions --session-path=/home/humbug/zephyr_sessions/%(program_name)s --api-key-file=/home/humbug/api-keys/%(program_name)s --ignore-expired-tickets --nagios-path=/home/humbug/mirror_status/%(program_name)s --nagios-class=zulip-mirror-nagios
|
command=python /home/zulip/zulip/bots/zephyr_mirror_backend.py --root-path=/home/zulip/zulip/bots --user=USERNAME --log-path=/home/zulip/logs/mirror-log-%(program_name)s --use-sessions --session-path=/home/zulip/zephyr_sessions/%(program_name)s --api-key-file=/home/zulip/api-keys/%(program_name)s --ignore-expired-tickets --nagios-path=/home/zulip/mirror_status/%(program_name)s --nagios-class=zulip-mirror-nagios
|
||||||
priority=200 ; the relative start priority (default 999)
|
priority=200 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
@ -8,4 +8,4 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/%(program_name)s.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/%(program_name)s.log ; stdout log path, NONE for none; default AUTO
|
||||||
environment=HOME="/home/humbug",USER="humbug",KRB5CCNAME="/home/humbug/ccache/%(program_name)s"
|
environment=HOME="/home/zulip",USER="humbug",KRB5CCNAME="/home/zulip/ccache/%(program_name)s"
|
||||||
|
|
|
@ -30,5 +30,5 @@ def commit_notice_destination(repo, branch, commit):
|
||||||
# Return None for cases where you don't want a notice sent
|
# Return None for cases where you don't want a notice sent
|
||||||
return None
|
return None
|
||||||
|
|
||||||
ZULIP_API_PATH = "/home/humbug/zulip/api"
|
ZULIP_API_PATH = "/home/zulip/zulip/api"
|
||||||
ZULIP_SITE = "https://staging.zulip.com"
|
ZULIP_SITE = "https://staging.zulip.com"
|
||||||
|
|
|
@ -10,5 +10,5 @@ STREAM_FOR_NOTIFICATIONS = "trac"
|
||||||
TRAC_BASE_TICKET_URL = "https://trac.zulip.net/ticket"
|
TRAC_BASE_TICKET_URL = "https://trac.zulip.net/ticket"
|
||||||
|
|
||||||
TRAC_NOTIFY_FIELDS = ["description", "summary", "resolution", "comment", "owner"]
|
TRAC_NOTIFY_FIELDS = ["description", "summary", "resolution", "comment", "owner"]
|
||||||
ZULIP_API_PATH = "/home/humbug/zulip/api"
|
ZULIP_API_PATH = "/home/zulip/zulip/api"
|
||||||
ZULIP_SITE = "https://staging.zulip.com"
|
ZULIP_SITE = "https://staging.zulip.com"
|
||||||
|
|
|
@ -84,8 +84,8 @@ cp -a /root/zulip/servers/puppet/modules/zulip/files/puppet.conf /etc/puppet/
|
||||||
userdel admin
|
userdel admin
|
||||||
passwd -d root
|
passwd -d root
|
||||||
puppet apply -e 'class {"zulip": machinetype => "$type"}'
|
puppet apply -e 'class {"zulip": machinetype => "$type"}'
|
||||||
cp -a /root/zulip /home/humbug/zulip
|
cp -a /root/zulip /home/zulip/zulip
|
||||||
chown -R humbug:humbug /home/humbug/zulip
|
chown -R humbug:humbug /home/zulip/zulip
|
||||||
# These server restarting bits should be moveable into puppet-land, ideally
|
# These server restarting bits should be moveable into puppet-land, ideally
|
||||||
apt-get -y upgrade
|
apt-get -y upgrade
|
||||||
if [ -e "/etc/init.d/nginx" ]; then
|
if [ -e "/etc/init.d/nginx" ]; then
|
||||||
|
@ -98,9 +98,9 @@ fi
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# TODO: Don't give servers push access to our git!
|
# TODO: Don't give servers push access to our git!
|
||||||
scp $SSH_OPTS -i "$amazon_key_file" "$server_private_key_file" humbug@"$server":/home/humbug/.ssh/id_rsa
|
scp $SSH_OPTS -i "$amazon_key_file" "$server_private_key_file" humbug@"$server":/home/zulip/.ssh/id_rsa
|
||||||
ssh $SSH_OPTS "$server" -t -i "$amazon_key_file" -lhumbug <<EOF
|
ssh $SSH_OPTS "$server" -t -i "$amazon_key_file" -lhumbug <<EOF
|
||||||
chmod 600 /home/humbug/.ssh/id_rsa
|
chmod 600 /home/zulip/.ssh/id_rsa
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
|
|
|
@ -32,17 +32,17 @@
|
||||||
Header add Strict-Transport-Security "max-age=15768000"
|
Header add Strict-Transport-Security "max-age=15768000"
|
||||||
Header add X-Frame-Options DENY
|
Header add X-Frame-Options DENY
|
||||||
|
|
||||||
Alias /chrome/common /home/humbug/trac/htdocs/common
|
Alias /chrome/common /home/zulip/trac/htdocs/common
|
||||||
Alias /chrome/site /home/humbug/trac/htdocs/site
|
Alias /chrome/site /home/zulip/trac/htdocs/site
|
||||||
|
|
||||||
<Directory "/home/humbug/trac/htdocs">
|
<Directory "/home/zulip/trac/htdocs">
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow from all
|
Allow from all
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
WSGIScriptAlias / /home/humbug/trac/cgi-bin/trac.wsgi
|
WSGIScriptAlias / /home/zulip/trac/cgi-bin/trac.wsgi
|
||||||
|
|
||||||
<Directory /home/humbug/trac>
|
<Directory /home/zulip/trac>
|
||||||
WSGIApplicationGroup %{GLOBAL}
|
WSGIApplicationGroup %{GLOBAL}
|
||||||
Order deny,allow
|
Order deny,allow
|
||||||
Allow from all
|
Allow from all
|
||||||
|
|
|
@ -6,10 +6,10 @@ $mailto = 'buildd-maintainers@zulip.net';
|
||||||
# umt compare-bin relies upon this being unset.
|
# umt compare-bin relies upon this being unset.
|
||||||
#
|
#
|
||||||
# The above comment is a lie. ~ lfaraone
|
# The above comment is a lie. ~ lfaraone
|
||||||
$build_dir='/home/humbug/ubuntu/build';
|
$build_dir='/home/zulip/ubuntu/build';
|
||||||
|
|
||||||
# Directory for writing build logs to
|
# Directory for writing build logs to
|
||||||
$log_dir="/home/humbug/ubuntu/logs";
|
$log_dir="/home/zulip/ubuntu/logs";
|
||||||
|
|
||||||
# Override default sbuild dependency resolver (see 'man sbuild'). The default
|
# Override default sbuild dependency resolver (see 'man sbuild'). The default
|
||||||
# resolver (apt) mostly works ok but not always (eg, oneiric libreoffice).
|
# resolver (apt) mostly works ok but not always (eg, oneiric libreoffice).
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
MAILTO=root
|
MAILTO=root
|
||||||
|
|
||||||
# Clear all expired Django sessions at 10:22 PM every day.
|
# Clear all expired Django sessions at 10:22 PM every day.
|
||||||
22 22 * * * humbug cd /home/humbug/deployments/current && python manage.py clearsessions
|
22 22 * * * humbug cd /home/zulip/deployments/current && python manage.py clearsessions
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
MAILTO=root
|
MAILTO=root
|
||||||
|
|
||||||
* * * * * humbug cd /home/humbug/deployments/current && python manage.py email-mirror
|
* * * * * humbug cd /home/zulip/deployments/current && python manage.py email-mirror
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
MAILTO=root
|
MAILTO=root
|
||||||
SHELL=/bin/bash
|
SHELL=/bin/bash
|
||||||
|
|
||||||
0 3 * * * humbug /home/humbug/zulip/servers/puppet/modules/zulip/files/graphite/daily_rsync_backup.sh
|
0 3 * * * humbug /home/zulip/zulip/servers/puppet/modules/zulip/files/graphite/daily_rsync_backup.sh
|
||||||
|
|
|
@ -2,9 +2,9 @@ SHELL=/bin/bash
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
USER=root
|
USER=root
|
||||||
|
|
||||||
* * * * * root /home/humbug/deployments/current/tools/write-rabbitmq-consumers-state-file notify_tornado
|
* * * * * root /home/zulip/deployments/current/tools/write-rabbitmq-consumers-state-file notify_tornado
|
||||||
* * * * * root /home/humbug/deployments/current/tools/write-rabbitmq-consumers-state-file user_activity
|
* * * * * root /home/zulip/deployments/current/tools/write-rabbitmq-consumers-state-file user_activity
|
||||||
* * * * * root /home/humbug/deployments/current/tools/write-rabbitmq-consumers-state-file user_activity_interval
|
* * * * * root /home/zulip/deployments/current/tools/write-rabbitmq-consumers-state-file user_activity_interval
|
||||||
* * * * * root /home/humbug/deployments/current/tools/write-rabbitmq-consumers-state-file user_presence
|
* * * * * root /home/zulip/deployments/current/tools/write-rabbitmq-consumers-state-file user_presence
|
||||||
* * * * * root /home/humbug/deployments/current/tools/write-rabbitmq-consumers-state-file invites
|
* * * * * root /home/zulip/deployments/current/tools/write-rabbitmq-consumers-state-file invites
|
||||||
* * * * * root /home/humbug/deployments/current/tools/write-rabbitmq-consumers-state-file signups
|
* * * * * root /home/zulip/deployments/current/tools/write-rabbitmq-consumers-state-file signups
|
||||||
|
|
|
@ -22,4 +22,4 @@
|
||||||
# m h dom mon dow command
|
# m h dom mon dow command
|
||||||
SHELL=/bin/bash
|
SHELL=/bin/bash
|
||||||
|
|
||||||
* * * * * root /home/humbug/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
|
* * * * * 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,4 +1,4 @@
|
||||||
# We don't actually need a valid Kerberos cache since these are sent
|
# We don't actually need a valid Kerberos cache since these are sent
|
||||||
# unauth anyway -- but a cache is required for zwrite to run.
|
# unauth anyway -- but a cache is required for zwrite to run.
|
||||||
|
|
||||||
* * * * * humbug env KRB5CCNAME=/home/humbug/ccache/zmirror-tabbott zwrite -c zulip-mirror-nagios -i nagios-test -m test -Szulip-nagios@mit.edu -d -q >/dev/null 2>/dev/null
|
* * * * * humbug env KRB5CCNAME=/home/zulip/ccache/zmirror-tabbott zwrite -c zulip-mirror-nagios -i nagios-test -m test -Szulip-nagios@mit.edu -d -q >/dev/null 2>/dev/null
|
||||||
|
|
|
@ -22,5 +22,5 @@ SHELL=/bin/bash
|
||||||
# For more information see the manual pages of crontab(5) and cron(8)
|
# For more information see the manual pages of crontab(5) and cron(8)
|
||||||
#
|
#
|
||||||
# m h dom mon dow command
|
# m h dom mon dow command
|
||||||
35 * * * * humbug /home/humbug/zulip/bots/zmirror-renew-kerberos
|
35 * * * * humbug /home/zulip/zulip/bots/zmirror-renew-kerberos
|
||||||
*/2 * * * * humbug /home/humbug/zulip/bots/check-mirroring --sharded &> /var/lib/nagios_state/check-mirroring-results-tmp; mv /var/lib/nagios_state/check-mirroring-results-tmp /var/lib/nagios_state/check-mirroring-results
|
*/2 * * * * humbug /home/zulip/zulip/bots/check-mirroring --sharded &> /var/lib/nagios_state/check-mirroring-results-tmp; mv /var/lib/nagios_state/check-mirroring-results-tmp /var/lib/nagios_state/check-mirroring-results
|
||||||
|
|
|
@ -3,7 +3,7 @@ graphiti_base_url: https://stats1.zulip.net/graphiti/
|
||||||
graphite_base_url: https://graphiti:xxxxxxxxxxxxxxxxxx@stats1.zulip.net:444/
|
graphite_base_url: https://graphiti:xxxxxxxxxxxxxxxxxx@stats1.zulip.net:444/
|
||||||
graphite_userpw: "graphiti:xxxxxxxxxxxxxxxxxx"
|
graphite_userpw: "graphiti:xxxxxxxxxxxxxxxxxx"
|
||||||
graphite_auth: :digest
|
graphite_auth: :digest
|
||||||
graphite_cert: "/home/humbug/graphiti/humbughq_cert_internal.pem"
|
graphite_cert: "/home/zulip/graphiti/humbughq_cert_internal.pem"
|
||||||
#graphite_base_url: https://user:pass@graphite01.pp.local
|
#graphite_base_url: https://user:pass@graphite01.pp.local
|
||||||
redis_url: localhost:6978:1/graphiti
|
redis_url: localhost:6978:1/graphiti
|
||||||
tmp_dir: /tmp
|
tmp_dir: /tmp
|
||||||
|
|
|
@ -4,4 +4,4 @@ if [ "$(hostname)" = "staging.zulip.net" ]; then
|
||||||
else
|
else
|
||||||
site="https://api.zulip.com"
|
site="https://api.zulip.com"
|
||||||
fi
|
fi
|
||||||
/home/humbug/deployments/current/bots/check_send_receive.py --munin $1 --site="$site"
|
/home/zulip/deployments/current/bots/check_send_receive.py --munin $1 --site="$site"
|
||||||
|
|
|
@ -58,5 +58,5 @@ fi
|
||||||
# real work - i.e. display the data. Almost always this will be
|
# real work - i.e. display the data. Almost always this will be
|
||||||
# "value" subfield for every data field.
|
# "value" subfield for every data field.
|
||||||
|
|
||||||
echo "active_queues.value $(cat /home/humbug/stats/tornado.active_queues)"
|
echo "active_queues.value $(cat /home/zulip/stats/tornado.active_queues)"
|
||||||
echo "active_users.value $(cat /home/humbug/stats/tornado.active_users)"
|
echo "active_users.value $(cat /home/zulip/stats/tornado.active_users)"
|
||||||
|
|
|
@ -83,7 +83,7 @@ define command{
|
||||||
|
|
||||||
define command{
|
define command{
|
||||||
command_name check_feedback_bot
|
command_name check_feedback_bot
|
||||||
command_line /usr/lib/nagios/plugins/check_by_ssh -p $ARG1$ -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_procs -u humbug -c 1:1 -a "python /home/humbug/zulip/bots/feedback-bot"'
|
command_line /usr/lib/nagios/plugins/check_by_ssh -p $ARG1$ -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_procs -u humbug -c 1:1 -a "python /home/zulip/zulip/bots/feedback-bot"'
|
||||||
}
|
}
|
||||||
|
|
||||||
define command{
|
define command{
|
||||||
|
@ -103,7 +103,7 @@ define command{
|
||||||
|
|
||||||
define command{
|
define command{
|
||||||
command_name check_sync_public_streams
|
command_name check_sync_public_streams
|
||||||
command_line /usr/lib/nagios/plugins/check_by_ssh -p $ARG1$ -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_procs -u humbug -c 1:1 -a "/home/humbug/zulip/bots/sync-public-streams"'
|
command_line /usr/lib/nagios/plugins/check_by_ssh -p $ARG1$ -l nagios -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_procs -u humbug -c 1:1 -a "/home/zulip/zulip/bots/sync-public-streams"'
|
||||||
}
|
}
|
||||||
|
|
||||||
define command{
|
define command{
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
Nagios plugin to check that Zephyr personals mirrors are forwarding.
|
Nagios plugin to check that Zephyr personals mirrors are forwarding.
|
||||||
|
|
||||||
This script works by just monitoring the files under
|
This script works by just monitoring the files under
|
||||||
/home/humbug/mirror_status, which are updated by the Zephyr personals
|
/home/zulip/mirror_status, which are updated by the Zephyr personals
|
||||||
mirrors when they receive the messages sent every minute by
|
mirrors when they receive the messages sent every minute by
|
||||||
/etc/cron.d/test_zephyr_personal_mirrors
|
/etc/cron.d/test_zephyr_personal_mirrors
|
||||||
"""
|
"""
|
||||||
|
@ -12,7 +12,7 @@ mirrors when they receive the messages sent every minute by
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
RESULTS_DIR = "/home/humbug/mirror_status"
|
RESULTS_DIR = "/home/zulip/mirror_status"
|
||||||
|
|
||||||
states = {
|
states = {
|
||||||
"OK": 0,
|
"OK": 0,
|
||||||
|
|
|
@ -11,7 +11,7 @@ It is run by cron and can be found at bots/rabbitmq-numconsumers-crontab
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.path.append('/home/humbug/deployments/current')
|
sys.path.append('/home/zulip/deployments/current')
|
||||||
from bots.cron_file_helper import nagios_from_file
|
from bots.cron_file_helper import nagios_from_file
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
|
|
|
@ -12,7 +12,7 @@ It is run by cron and can be found at bots/rabbitmq-queuesize-crontab
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.path.append('/home/humbug/deployments/current')
|
sys.path.append('/home/zulip/deployments/current')
|
||||||
from bots.cron_file_helper import nagios_from_file
|
from bots.cron_file_helper import nagios_from_file
|
||||||
|
|
||||||
RESULTS_FILE = "/var/lib/nagios_state/check-rabbitmq-results"
|
RESULTS_FILE = "/var/lib/nagios_state/check-rabbitmq-results"
|
||||||
|
|
|
@ -58,7 +58,7 @@ sendreceive.warning 3
|
||||||
sendreceive.critical 5"""
|
sendreceive.critical 5"""
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
sys.path.append('/home/humbug/deployments/current/api')
|
sys.path.append('/home/zulip/deployments/current/api')
|
||||||
import zulip
|
import zulip
|
||||||
|
|
||||||
states = {
|
states = {
|
||||||
|
|
|
@ -12,8 +12,8 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
os.environ['DJANGO_SETTINGS_MODULE'] = "zproject.settings"
|
os.environ['DJANGO_SETTINGS_MODULE'] = "zproject.settings"
|
||||||
sys.path.append('/home/humbug/deployments/current')
|
sys.path.append('/home/zulip/deployments/current')
|
||||||
sys.path.append('/home/humbug/deployments/current/zerver')
|
sys.path.append('/home/zulip/deployments/current/zerver')
|
||||||
|
|
||||||
from zerver.models import UserActivity
|
from zerver.models import UserActivity
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ error_page 502 503 504 /static/html/5xx.html;
|
||||||
|
|
||||||
# Serve static files directly
|
# Serve static files directly
|
||||||
location /static/ {
|
location /static/ {
|
||||||
alias /home/humbug/prod-static/;
|
alias /home/zulip/prod-static/;
|
||||||
error_page 404 /static/html/404.html;
|
error_page 404 /static/html/404.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ location ~ /json/get_updates|/api/v1/get_messages|/api/v1/messages/latest|/json/
|
||||||
# Send everything else to Django via FastCGI
|
# Send everything else to Django via FastCGI
|
||||||
location / {
|
location / {
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_pass unix:/home/humbug/deployments/fastcgi-socket;
|
fastcgi_pass unix:/home/zulip/deployments/fastcgi-socket;
|
||||||
fastcgi_split_path_info ^()(.*)$;
|
fastcgi_split_path_info ^()(.*)$;
|
||||||
# Second number set to `getconf PAGESIZE`
|
# Second number set to `getconf PAGESIZE`
|
||||||
fastcgi_buffers 1024 4k;
|
fastcgi_buffers 1024 4k;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[program:feedback-bot]
|
[program:feedback-bot]
|
||||||
command=/home/humbug/zulip/bots/feedback-bot
|
command=/home/zulip/zulip/bots/feedback-bot
|
||||||
autostart=true
|
autostart=true
|
||||||
user=humbug
|
user=humbug
|
||||||
|
|
|
@ -12,7 +12,7 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=root ; setuid to this UNIX account to run the program
|
user=root ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/carbon-cache.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/carbon-cache.log ; stdout log path, NONE for none; default AUTO
|
||||||
directory=/home/humbug/
|
directory=/home/zulip/
|
||||||
|
|
||||||
[program:zulip-carbon-aggregator]
|
[program:zulip-carbon-aggregator]
|
||||||
command=python /opt/graphite/bin/carbon-aggregator.py --debug start
|
command=python /opt/graphite/bin/carbon-aggregator.py --debug start
|
||||||
|
@ -24,10 +24,10 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=root ; setuid to this UNIX account to run the program
|
user=root ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/carbon-aggregator.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/carbon-aggregator.log ; stdout log path, NONE for none; default AUTO
|
||||||
directory=/home/humbug/
|
directory=/home/zulip/
|
||||||
|
|
||||||
[program:zulip-statsd]
|
[program:zulip-statsd]
|
||||||
command=node stats.js /home/humbug/zulip/servers/puppet/modules/zulip/files/statsd/local.js
|
command=node stats.js /home/zulip/zulip/servers/puppet/modules/zulip/files/statsd/local.js
|
||||||
priority=200 ; the relative start priority (default 999)
|
priority=200 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
@ -36,11 +36,11 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/statsd.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/statsd.log ; stdout log path, NONE for none; default AUTO
|
||||||
directory=/home/humbug/statsd
|
directory=/home/zulip/statsd
|
||||||
|
|
||||||
|
|
||||||
[program:zulip-graphiti]
|
[program:zulip-graphiti]
|
||||||
command=/home/humbug/zulip/tools/run-graphiti
|
command=/home/zulip/zulip/tools/run-graphiti
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
stopsignal=TERM ; signal used to kill process (default TERM)
|
stopsignal=TERM ; signal used to kill process (default TERM)
|
||||||
|
@ -48,7 +48,7 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/graphiti.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/graphiti.log ; stdout log path, NONE for none; default AUTO
|
||||||
directory=/home/humbug/graphiti
|
directory=/home/zulip/graphiti
|
||||||
|
|
||||||
[group:zulip-stats]
|
[group:zulip-stats]
|
||||||
programs=zulip-carbon-cache,zulip-carbon-aggregator,zulip-statsd,zulip-graphiti
|
programs=zulip-carbon-cache,zulip-carbon-aggregator,zulip-statsd,zulip-graphiti
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[program:zmirror]
|
[program:zmirror]
|
||||||
command=python /home/humbug/zulip/bots/zephyr_mirror.py --root-path=/home/humbug/ --user=tabbott/extra --forward-class-messages --log-path=/home/humbug/logs/mirror-log --on-startup-command="/home/humbug/zulip/bots/zmirror-renew-kerberos"
|
command=python /home/zulip/zulip/bots/zephyr_mirror.py --root-path=/home/zulip/ --user=tabbott/extra --forward-class-messages --log-path=/home/zulip/logs/mirror-log --on-startup-command="/home/zulip/zulip/bots/zmirror-renew-kerberos"
|
||||||
priority=200 ; the relative start priority (default 999)
|
priority=200 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
@ -8,10 +8,10 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/zmirror.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/zmirror.log ; stdout log path, NONE for none; default AUTO
|
||||||
environment=HOME="/home/humbug",USER="humbug"
|
environment=HOME="/home/zulip",USER="humbug"
|
||||||
|
|
||||||
[program:sync-public-streams]
|
[program:sync-public-streams]
|
||||||
command=python /home/humbug/zulip/bots/sync-public-streams
|
command=python /home/zulip/zulip/bots/sync-public-streams
|
||||||
priority=200 ; the relative start priority (default 999)
|
priority=200 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
@ -20,4 +20,4 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/sync-public-streams.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/sync-public-streams.log ; stdout log path, NONE for none; default AUTO
|
||||||
environment=HOME="/home/humbug"
|
environment=HOME="/home/zulip"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
; variables can be expanded using this syntax: "%(ENV_HOME)s".
|
; variables can be expanded using this syntax: "%(ENV_HOME)s".
|
||||||
|
|
||||||
[fcgi-program:zulip-django]
|
[fcgi-program:zulip-django]
|
||||||
command=python /home/humbug/deployments/current/manage.py runfcgi daemonize=False maxchildren=20 ; the program (relative uses PATH, can take args)
|
command=python /home/zulip/deployments/current/manage.py runfcgi daemonize=False maxchildren=20 ; the program (relative uses PATH, can take args)
|
||||||
;process_name=%(program_name)s ; process_name expr (default %(program_name)s)
|
;process_name=%(program_name)s ; process_name expr (default %(program_name)s)
|
||||||
;numprocs=1 ; number of processes copies to start (def 1)
|
;numprocs=1 ; number of processes copies to start (def 1)
|
||||||
;directory=/tmp ; directory to cwd to before exec (def no cwd)
|
;directory=/tmp ; directory to cwd to before exec (def no cwd)
|
||||||
|
@ -37,13 +37,13 @@ stdout_logfile=/var/log/zulip/django.log ; stdout log path, NONE for none
|
||||||
;stderr_events_enabled=false ; emit events on stderr writes (default false)
|
;stderr_events_enabled=false ; emit events on stderr writes (default false)
|
||||||
;environment=A=1,B=2 ; process environment additions (def no adds)
|
;environment=A=1,B=2 ; process environment additions (def no adds)
|
||||||
;serverurl=AUTO ; override serverurl computation (childutils)
|
;serverurl=AUTO ; override serverurl computation (childutils)
|
||||||
directory=/home/humbug/deployments/current/
|
directory=/home/zulip/deployments/current/
|
||||||
socket=unix:///home/humbug/deployments/fastcgi-socket
|
socket=unix:///home/zulip/deployments/fastcgi-socket
|
||||||
socket_owner=humbug:humbug
|
socket_owner=humbug:humbug
|
||||||
socket_mode=0700
|
socket_mode=0700
|
||||||
|
|
||||||
[program:zulip-tornado]
|
[program:zulip-tornado]
|
||||||
command=python /home/humbug/deployments/current/manage.py runtornado localhost:9993
|
command=python /home/zulip/deployments/current/manage.py runtornado localhost:9993
|
||||||
priority=200 ; the relative start priority (default 999)
|
priority=200 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
@ -52,10 +52,10 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/tornado.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/tornado.log ; stdout log path, NONE for none; default AUTO
|
||||||
directory=/home/humbug/deployments/current/
|
directory=/home/zulip/deployments/current/
|
||||||
|
|
||||||
[program:zulip-events-user-activity]
|
[program:zulip-events-user-activity]
|
||||||
command=python /home/humbug/deployments/current/manage.py process_queue user_activity
|
command=python /home/zulip/deployments/current/manage.py process_queue user_activity
|
||||||
priority=300 ; the relative start priority (default 999)
|
priority=300 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
@ -64,10 +64,10 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/events-user-activity.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/events-user-activity.log ; stdout log path, NONE for none; default AUTO
|
||||||
directory=/home/humbug/deployments/current/
|
directory=/home/zulip/deployments/current/
|
||||||
|
|
||||||
[program:zulip-events-user-activity-interval]
|
[program:zulip-events-user-activity-interval]
|
||||||
command=python /home/humbug/deployments/current/manage.py process_queue user_activity_interval
|
command=python /home/zulip/deployments/current/manage.py process_queue user_activity_interval
|
||||||
priority=300 ; the relative start priority (default 999)
|
priority=300 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
@ -76,10 +76,10 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/events-user-activity-interval.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/events-user-activity-interval.log ; stdout log path, NONE for none; default AUTO
|
||||||
directory=/home/humbug/deployments/current/
|
directory=/home/zulip/deployments/current/
|
||||||
|
|
||||||
[program:zulip-events-user-presence]
|
[program:zulip-events-user-presence]
|
||||||
command=python /home/humbug/deployments/current/manage.py process_queue user_presence
|
command=python /home/zulip/deployments/current/manage.py process_queue user_presence
|
||||||
priority=300 ; the relative start priority (default 999)
|
priority=300 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
@ -88,10 +88,10 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/events-user-presence.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/events-user-presence.log ; stdout log path, NONE for none; default AUTO
|
||||||
directory=/home/humbug/deployments/current/
|
directory=/home/zulip/deployments/current/
|
||||||
|
|
||||||
[program:zulip-events-signups]
|
[program:zulip-events-signups]
|
||||||
command=python /home/humbug/deployments/current/manage.py process_queue signups
|
command=python /home/zulip/deployments/current/manage.py process_queue signups
|
||||||
priority=400 ; the relative start priority (default 999)
|
priority=400 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
@ -100,10 +100,10 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/events-signups.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/events-signups.log ; stdout log path, NONE for none; default AUTO
|
||||||
directory=/home/humbug/deployments/current/
|
directory=/home/zulip/deployments/current/
|
||||||
|
|
||||||
[program:zulip-events-confirmation-emails]
|
[program:zulip-events-confirmation-emails]
|
||||||
command=python /home/humbug/deployments/current/manage.py process_queue invites
|
command=python /home/zulip/deployments/current/manage.py process_queue invites
|
||||||
priority=500 ; the relative start priority (default 999)
|
priority=500 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
@ -112,10 +112,10 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/events-confirmation-emails.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/events-confirmation-emails.log ; stdout log path, NONE for none; default AUTO
|
||||||
directory=/home/humbug/deployments/current/
|
directory=/home/zulip/deployments/current/
|
||||||
|
|
||||||
[program:zulip-events-missedmessage_reminders]
|
[program:zulip-events-missedmessage_reminders]
|
||||||
command=python /home/humbug/deployments/current/manage.py process_queue missedmessage_emails
|
command=python /home/zulip/deployments/current/manage.py process_queue missedmessage_emails
|
||||||
priority=600 ; the relative start priority (default 999)
|
priority=600 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
@ -124,10 +124,10 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/events-missedmessage_reminders.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/events-missedmessage_reminders.log ; stdout log path, NONE for none; default AUTO
|
||||||
directory=/home/humbug/deployments/current/
|
directory=/home/zulip/deployments/current/
|
||||||
|
|
||||||
[program:humbug-events-slowqueries]
|
[program:humbug-events-slowqueries]
|
||||||
command=python /home/humbug/deployments/current/manage.py process_queue slow_queries
|
command=python /home/zulip/deployments/current/manage.py process_queue slow_queries
|
||||||
priority=600 ; the relative start priority (default 999)
|
priority=600 ; the relative start priority (default 999)
|
||||||
autostart=true ; start at supervisord start (default: true)
|
autostart=true ; start at supervisord start (default: true)
|
||||||
autorestart=true ; whether/when to restart (default: unexpected)
|
autorestart=true ; whether/when to restart (default: unexpected)
|
||||||
|
@ -136,7 +136,7 @@ stopwaitsecs=30 ; max num secs to wait b4 SIGKILL (default 10)
|
||||||
user=humbug ; setuid to this UNIX account to run the program
|
user=humbug ; setuid to this UNIX account to run the program
|
||||||
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
redirect_stderr=true ; redirect proc stderr to stdout (default false)
|
||||||
stdout_logfile=/var/log/zulip/events-slow_queries.log ; stdout log path, NONE for none; default AUTO
|
stdout_logfile=/var/log/zulip/events-slow_queries.log ; stdout log path, NONE for none; default AUTO
|
||||||
directory=/home/humbug/deployments/current/
|
directory=/home/zulip/deployments/current/
|
||||||
|
|
||||||
; The below sample group section shows all possible group values,
|
; The below sample group section shows all possible group values,
|
||||||
; create one or more 'real' group: sections to create "heterogeneous"
|
; create one or more 'real' group: sections to create "heterogeneous"
|
||||||
|
|
|
@ -45,7 +45,7 @@ class zulip::app_frontend {
|
||||||
source => "puppet:///modules/zulip/supervisor/conf.d/zulip.conf",
|
source => "puppet:///modules/zulip/supervisor/conf.d/zulip.conf",
|
||||||
notify => Service["supervisor"],
|
notify => Service["supervisor"],
|
||||||
}
|
}
|
||||||
file { "/home/humbug/tornado":
|
file { "/home/zulip/tornado":
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => "humbug",
|
owner => "humbug",
|
||||||
group => "humbug",
|
group => "humbug",
|
||||||
|
|
|
@ -27,18 +27,18 @@ class zulip::base {
|
||||||
gid => '1000',
|
gid => '1000',
|
||||||
require => Group['humbug'],
|
require => Group['humbug'],
|
||||||
shell => '/bin/bash',
|
shell => '/bin/bash',
|
||||||
home => '/home/humbug',
|
home => '/home/zulip',
|
||||||
managehome => true,
|
managehome => true,
|
||||||
}
|
}
|
||||||
file { '/home/humbug/.ssh/authorized_keys':
|
file { '/home/zulip/.ssh/authorized_keys':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
require => File['/home/humbug/.ssh'],
|
require => File['/home/zulip/.ssh'],
|
||||||
mode => 600,
|
mode => 600,
|
||||||
owner => "humbug",
|
owner => "humbug",
|
||||||
group => "humbug",
|
group => "humbug",
|
||||||
source => 'puppet:///modules/zulip/authorized_keys',
|
source => 'puppet:///modules/zulip/authorized_keys',
|
||||||
}
|
}
|
||||||
file { '/home/humbug/.ssh':
|
file { '/home/zulip/.ssh':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
require => User['humbug'],
|
require => User['humbug'],
|
||||||
owner => "humbug",
|
owner => "humbug",
|
||||||
|
|
|
@ -10,7 +10,7 @@ class zulip::builder {
|
||||||
]
|
]
|
||||||
package { $buildd_packages: ensure => "installed" }
|
package { $buildd_packages: ensure => "installed" }
|
||||||
|
|
||||||
file { "/home/humbug/.sbuildrc":
|
file { "/home/zulip/.sbuildrc":
|
||||||
require => Package[sbuild],
|
require => Package[sbuild],
|
||||||
ensure => file,
|
ensure => file,
|
||||||
owner => "humbug",
|
owner => "humbug",
|
||||||
|
@ -28,7 +28,7 @@ class zulip::builder {
|
||||||
|
|
||||||
file { "/root/.sbuildrc":
|
file { "/root/.sbuildrc":
|
||||||
ensure => 'link',
|
ensure => 'link',
|
||||||
target => '/home/humbug/.sbuildrc',
|
target => '/home/zulip/.sbuildrc',
|
||||||
}
|
}
|
||||||
|
|
||||||
exec { "adduser root sbuild": }
|
exec { "adduser root sbuild": }
|
||||||
|
|
|
@ -13,6 +13,6 @@ class zulip::git {
|
||||||
|
|
||||||
file { '/home/git/repositories/eng/zulip.git/hooks/post-receive':
|
file { '/home/git/repositories/eng/zulip.git/hooks/post-receive':
|
||||||
ensure => 'link',
|
ensure => 'link',
|
||||||
target => '/home/humbug/zulip/tools/post-receive',
|
target => '/home/zulip/zulip/tools/post-receive',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ class zulip::stats {
|
||||||
source => "puppet:///modules/zulip/graphite/graphite.wsgi",
|
source => "puppet:///modules/zulip/graphite/graphite.wsgi",
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/home/humbug/graphiti/config/settings.yml":
|
file { "/home/zulip/graphiti/config/settings.yml":
|
||||||
ensure => file,
|
ensure => file,
|
||||||
owner => "humbug",
|
owner => "humbug",
|
||||||
group => "humbug",
|
group => "humbug",
|
||||||
|
|
|
@ -12,22 +12,22 @@ class zulip::trac {
|
||||||
],
|
],
|
||||||
ensure => present,
|
ensure => present,
|
||||||
}
|
}
|
||||||
file { "/home/humbug/trac/conf/trac.ini":
|
file { "/home/zulip/trac/conf/trac.ini":
|
||||||
owner => "humbug",
|
owner => "humbug",
|
||||||
group => "humbug",
|
group => "humbug",
|
||||||
mode => 644,
|
mode => 644,
|
||||||
source => "puppet:///modules/zulip/trac.ini",
|
source => "puppet:///modules/zulip/trac.ini",
|
||||||
require => User['humbug'],
|
require => User['humbug'],
|
||||||
}
|
}
|
||||||
file { '/home/humbug/trac/plugins/zulip_trac.py':
|
file { '/home/zulip/trac/plugins/zulip_trac.py':
|
||||||
ensure => 'link',
|
ensure => 'link',
|
||||||
target => '/home/humbug/zulip/api/integrations/trac/zulip_trac.py',
|
target => '/home/zulip/zulip/api/integrations/trac/zulip_trac.py',
|
||||||
}
|
}
|
||||||
file { '/home/humbug/trac/plugins/zulip_trac_config.py':
|
file { '/home/zulip/trac/plugins/zulip_trac_config.py':
|
||||||
ensure => 'link',
|
ensure => 'link',
|
||||||
target => '/home/humbug/zulip/bots/zulip_trac_config.py',
|
target => '/home/zulip/zulip/bots/zulip_trac_config.py',
|
||||||
}
|
}
|
||||||
# TODO: Add downloading and installing trac at /home/humbug/trac
|
# TODO: Add downloading and installing trac at /home/zulip/trac
|
||||||
|
|
||||||
file { '/etc/sysctl.d/40-postgresql.conf':
|
file { '/etc/sysctl.d/40-postgresql.conf':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
|
|
|
@ -33,5 +33,5 @@ class zulip::zmirror {
|
||||||
|
|
||||||
# TODO: Do the rest of our setup, which includes at least:
|
# TODO: Do the rest of our setup, which includes at least:
|
||||||
# Building python-zephyr after cloning it from https://github.com/ebroder/python-zephyr
|
# Building python-zephyr after cloning it from https://github.com/ebroder/python-zephyr
|
||||||
# Putting tabbott/extra's keytab on the system at /home/humbug/tabbott.extra.keytab
|
# Putting tabbott/extra's keytab on the system at /home/zulip/tabbott.extra.keytab
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,8 +13,8 @@ class zulip::zmirror_personals {
|
||||||
group => "root",
|
group => "root",
|
||||||
source => 'puppet:///modules/zulip/debathena.list',
|
source => 'puppet:///modules/zulip/debathena.list',
|
||||||
}
|
}
|
||||||
file { ['/home/humbug/api-keys', '/home/humbug/zephyr_sessions', '/home/humbug/ccache',
|
file { ['/home/zulip/api-keys', '/home/zulip/zephyr_sessions', '/home/zulip/ccache',
|
||||||
'/home/humbug/mirror_status']:
|
'/home/zulip/mirror_status']:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
mode => 644,
|
mode => 644,
|
||||||
owner => "humbug",
|
owner => "humbug",
|
||||||
|
|
|
@ -34,10 +34,10 @@ from zulip_tools import check_output, ENDC, FAIL
|
||||||
|
|
||||||
def update_deployment(server, refname):
|
def update_deployment(server, refname):
|
||||||
return subprocess.call(["ssh", server, "--", "env", "-u", "GIT_DIR",
|
return subprocess.call(["ssh", server, "--", "env", "-u", "GIT_DIR",
|
||||||
"/home/humbug/deployments/current/tools/update-deployment", refname])
|
"/home/zulip/deployments/current/tools/update-deployment", refname])
|
||||||
|
|
||||||
def send_deployment_finished_message(branch, message):
|
def send_deployment_finished_message(branch, message):
|
||||||
subprocess.check_call(["/home/humbug/zulip/api/bin/zulip-send", "--user=commit-bot@zulip.com",
|
subprocess.check_call(["/home/zulip/zulip/api/bin/zulip-send", "--user=commit-bot@zulip.com",
|
||||||
"--api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "--stream=commits",
|
"--api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "--stream=commits",
|
||||||
"--site=https://staging.zulip.com",
|
"--site=https://staging.zulip.com",
|
||||||
(u"--subject=deploy \u21D2 %s" % (branch,)).encode("utf-8"), "--message=%s" % (message,)])
|
(u"--subject=deploy \u21D2 %s" % (branch,)).encode("utf-8"), "--message=%s" % (message,)])
|
||||||
|
@ -51,7 +51,7 @@ deployments = {
|
||||||
for ln in sys.stdin:
|
for ln in sys.stdin:
|
||||||
oldrev, newrev, refname = ln.strip().split()
|
oldrev, newrev, refname = ln.strip().split()
|
||||||
if refname in deployments:
|
if refname in deployments:
|
||||||
p = subprocess.Popen("/home/humbug/zulip/bots/githook-post-receive",
|
p = subprocess.Popen("/home/zulip/zulip/bots/githook-post-receive",
|
||||||
stdin=subprocess.PIPE)
|
stdin=subprocess.PIPE)
|
||||||
p.communicate(input=ln)
|
p.communicate(input=ln)
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export HOME=/home/humbug
|
export HOME=/home/zulip
|
||||||
export PATH="/home/humbug/.rbenv/bin:$PATH"
|
export PATH="/home/zulip/.rbenv/bin:$PATH"
|
||||||
|
|
||||||
eval "$(rbenv init -)"
|
eval "$(rbenv init -)"
|
||||||
|
|
||||||
cd /home/humbug/graphiti
|
cd /home/zulip/graphiti
|
||||||
exec bundle exec unicorn -p 8088
|
exec bundle exec unicorn -p 8088
|
||||||
|
|
|
@ -19,7 +19,7 @@ refname = sys.argv[1]
|
||||||
|
|
||||||
subprocess.check_call(["mkdir", '-p',
|
subprocess.check_call(["mkdir", '-p',
|
||||||
DEPLOYMENTS_DIR,
|
DEPLOYMENTS_DIR,
|
||||||
'/home/humbug/logs'])
|
'/home/zulip/logs'])
|
||||||
|
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
got_lock = False
|
got_lock = False
|
||||||
|
|
|
@ -7,7 +7,7 @@ if [ -z "$queue" ]; then
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ZULIP_DIR=/home/humbug/deployments/current
|
ZULIP_DIR=/home/zulip/deployments/current
|
||||||
STATE_DIR=/var/lib/nagios_state
|
STATE_DIR=/var/lib/nagios_state
|
||||||
STATE_FILE=$STATE_DIR/check-rabbitmq-consumers-$queue
|
STATE_FILE=$STATE_DIR/check-rabbitmq-consumers-$queue
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ def check_output(*popenargs, **kwargs):
|
||||||
raise subprocess.CalledProcessError(retcode, cmd, output=output)
|
raise subprocess.CalledProcessError(retcode, cmd, output=output)
|
||||||
return output
|
return output
|
||||||
|
|
||||||
DEPLOYMENTS_DIR = "/home/humbug/deployments"
|
DEPLOYMENTS_DIR = "/home/zulip/deployments"
|
||||||
LOCK_DIR = os.path.join(DEPLOYMENTS_DIR, "lock")
|
LOCK_DIR = os.path.join(DEPLOYMENTS_DIR, "lock")
|
||||||
TIMESTAMP_FORMAT = '%Y-%m-%d-%H-%M-%S'
|
TIMESTAMP_FORMAT = '%Y-%m-%d-%H-%M-%S'
|
||||||
|
|
||||||
|
|
|
@ -445,7 +445,7 @@ def webathena_kerberos_login(request, user_profile,
|
||||||
# TODO: Send these data via (say) rabbitmq
|
# TODO: Send these data via (say) rabbitmq
|
||||||
try:
|
try:
|
||||||
subprocess.check_call(["ssh", "humbug@zmirror2.zulip.net", "--",
|
subprocess.check_call(["ssh", "humbug@zmirror2.zulip.net", "--",
|
||||||
"/home/humbug/zulip/bots/process_ccache",
|
"/home/zulip/zulip/bots/process_ccache",
|
||||||
user,
|
user,
|
||||||
user_profile.api_key,
|
user_profile.api_key,
|
||||||
base64.b64encode(ccache)])
|
base64.b64encode(ccache)])
|
||||||
|
|
|
@ -226,7 +226,7 @@ else:
|
||||||
'zerver.finders.ZulipFinder',
|
'zerver.finders.ZulipFinder',
|
||||||
)
|
)
|
||||||
if DEPLOYED:
|
if DEPLOYED:
|
||||||
STATIC_ROOT = '/home/humbug/prod-static'
|
STATIC_ROOT = '/home/zulip/prod-static'
|
||||||
else:
|
else:
|
||||||
STATIC_ROOT = 'prod-static/serve'
|
STATIC_ROOT = 'prod-static/serve'
|
||||||
|
|
||||||
|
@ -451,9 +451,9 @@ CACHES = {
|
||||||
if DEPLOYED:
|
if DEPLOYED:
|
||||||
SERVER_LOG_PATH = "/var/log/zulip/server.log"
|
SERVER_LOG_PATH = "/var/log/zulip/server.log"
|
||||||
WORKER_LOG_PATH = "/var/log/zulip/workers.log"
|
WORKER_LOG_PATH = "/var/log/zulip/workers.log"
|
||||||
EVENT_LOG_DIR = '/home/humbug/logs/event_log'
|
EVENT_LOG_DIR = '/home/zulip/logs/event_log'
|
||||||
STATS_DIR = '/home/humbug/stats'
|
STATS_DIR = '/home/zulip/stats'
|
||||||
PERSISTENT_QUEUE_FILENAME = "/home/humbug/tornado/event_queues.pickle"
|
PERSISTENT_QUEUE_FILENAME = "/home/zulip/tornado/event_queues.pickle"
|
||||||
EMAIL_LOG_PATH = "/var/log/zulip/email-mirror.log"
|
EMAIL_LOG_PATH = "/var/log/zulip/email-mirror.log"
|
||||||
else:
|
else:
|
||||||
EVENT_LOG_DIR = 'event_log'
|
EVENT_LOG_DIR = 'event_log'
|
||||||
|
|
Loading…
Reference in New Issue