Zev Benjamin
14f2b41c5d
Add Nagios plugin for monitoring the Postgres replication lag
...
(imported from commit 0196cca357ba58b08ac74065ce84f0e49141d30d)
2013-08-22 17:36:19 -04:00
Zev Benjamin
1bd4093e9b
Update Postgres pg_hba to match reality
...
(imported from commit 953fcff4df31cf7a1b14d674fe6df381f348fe72)
2013-08-22 11:47:03 -04:00
Tim Abbott
33872fc427
puppet: Fix path for rabbitmq-numconsumers.
...
(imported from commit 8d893057e837c8e8f45bc262cc7f3477ea5da415)
2013-08-21 12:01:55 -04:00
Tim Abbott
b8873e3283
Use /var/lib/nagios_state over /var/run/nagios for check status files.
...
The previous path would get destroyed on reboot.
(imported from commit 27e8fa54fc1e4001166db93b1fb59e87e0b1ccf5)
2013-08-20 17:09:09 -04:00
Tim Abbott
605171d1da
zephyr_mirror: Renew kerberos tickets when starting up class mirror.
...
(imported from commit 34b0a78558c6f20043efe986a16064387f36f1c0)
2013-08-20 15:27:24 -04:00
Tim Abbott
a8e28bb99a
puppet: Set correct permissions for supervisor.sock.
...
We can't do this with a "file" entry because it doesn't handle objects
of type socket.
(imported from commit 5f0f79f1a7905c4d70cc7e2f4c474b0629841c12)
2013-08-20 15:27:24 -04:00
Tim Abbott
12ec430cb8
puppet: Fix typo in email mirror configuration.
...
(imported from commit f81ca5ba28046be701f672df1fc3409e09841aec)
2013-08-20 15:27:24 -04:00
Tim Abbott
6850f25907
[manual] puppet: Move rabbitmq cron jobs into puppet.
...
When we deploy this, we should remove the relevant jobs from root's
crontab on our app servers.
(imported from commit 749be952d504f5a4d243cf59f6430acc689fc821)
2013-08-20 15:27:24 -04:00
Tim Abbott
9e6e57f349
puppet: Run sync-public-streams via supervisor.
...
(imported from commit f515cd36cd3138bcc8a13310276f3a6bb961ce33)
2013-08-20 15:27:23 -04:00
Tim Abbott
1a7d946bd1
puppet: Move zephyr_mirror crontab into /etc/cron.d.
...
(imported from commit e93e630704ce7e85346f54f095c642010058fc09)
2013-08-20 15:27:21 -04:00
Tim Abbott
c7be859d21
puppet: Run zephyr_mirror.py via supervisord.
...
(imported from commit 09086a1dd298e7ee9b655ccd6c58ac720bbc7798)
2013-08-20 15:26:50 -04:00
Tim Abbott
00279ae705
puppet: Add debathena.list to zmirror configuration.
...
(imported from commit 3d54bd495b5f8f582ec4d1f7a859ac0c0b63930b)
2013-08-20 15:26:50 -04:00
Luke Faraone
d3e1d0301d
Remove dummy 10.0.0.0/8 routes on interface configure.
...
(imported from commit 8a01137550b668a71871d20b1ebc1e62f0fdbaf4)
2013-08-19 16:19:47 -04:00
Luke Faraone
91ff010853
Configuration to create schroots.
...
(imported from commit 27288bfdc5b39aa5c8804ac9628dc960b621ca7f)
2013-08-19 16:19:45 -04:00
Luke Faraone
428148c67f
Install Mosh on our servers.
...
This makes me happy when I'm working on an airplane.
(imported from commit adda8c3355cd5e54210c9706df72fb02697db1f6)
2013-08-19 16:19:26 -04:00
Luke Faraone
da2cec6db8
Update ssh key for git.zulip.net used in install-server
...
For some reason the one already there didn't match. Hm.
(imported from commit 35e884fe1aa67fe6730dade24abc0565d2627608)
2013-08-19 16:19:26 -04:00
Luke Faraone
04174d8d93
Delete root's password in install-server if set.
...
Digital Ocean emails you the VM's password in plain text. We shouldn't
have this work for longer than we have to.
(imported from commit 2310cac9a9aa085149b9438941ecb0a5f703c128)
2013-08-19 16:19:26 -04:00
Jessica McKellar
7dc3a155ba
Add a crontab entry for the email mirror.
...
(imported from commit cd1765c78cc7d298c6856563107a33354e45e441)
2013-08-16 16:09:18 -04:00
Jessica McKellar
2c8f08e237
nagios: add a command to check that the email mirror is running.
...
(imported from commit 812626c2ed665bdf19e0b52319f0f8fcc37c2359)
2013-08-16 16:09:18 -04:00
Luke Faraone
74d4feb5ec
Remove legacy gitit files.
...
(imported from commit 818f4b95e82c5909be5909f24864614ff89517fc)
2013-08-16 13:21:37 -04:00
Luke Faraone
368ace069c
Use PyDNS instead of shelling out to `host`
...
On Debian systems, this is found in the `python-dns` package.
On OS X and others, install "pydns" using your Python package manager.
(imported from commit 17827d0a1d3d72b12945df5563295a1573bfa1ed)
2013-08-12 13:09:19 -07:00
Tim Abbott
aefaca8f73
Update trac configuration from prod server.
...
(imported from commit 3a671e629e6ab9e8d7efece0370eda9cea415363)
2013-08-08 10:22:32 -04:00
Tim Abbott
e8f1a349b8
Add Zulip Nagios integration to puppet.
...
(imported from commit 62b53e4f8a31ec8ab21d5bb5435a320c8e4eab95)
2013-08-08 10:22:31 -04:00
Tim Abbott
53a47e8534
Rename Humbug-based variables/paths in Nagios plugin.
...
(imported from commit fe8e33241215ea880f7351c3c86b0fb546faf8d3)
2013-08-08 10:22:31 -04:00
Tim Abbott
3005792734
Rename Humbug-based variables in Trac plugin.
...
(imported from commit 5d406cb6c5fe7b1fbd4da706f7ac6bb6e381cadb)
2013-08-08 10:22:31 -04:00
Tim Abbott
6550134b3e
Rename humbug_*_config.py to zulip_*_config.py.
...
(imported from commit a1d4dd22c59f812f0eb4875dc70c89ce96a4b90c)
2013-08-08 10:22:31 -04:00
Tim Abbott
747a9c536f
Rename the 'humbug' API module to 'zulip'.
...
(imported from commit b3a3d7c05459cbb0110cd0fbe2197d779f3a6264)
2013-08-08 10:22:31 -04:00
Tim Abbott
2ea1bb05a5
Rename ~/.humbugrc to ~/.zuliprc.
...
(imported from commit a0d53dd20097a56971874dc1d84c6f95267e84f2)
2013-08-08 10:22:31 -04:00
Zev Benjamin
68ff801d43
Monitor the FTS update log length with nagios.
...
(imported from commit 7970f39b42fee179525bc2b15e18954ba0570462)
2013-08-07 12:08:20 -04:00
Tim Abbott
7b9305b06f
Rename Django project to zproject.
...
This includes a hack to preserve humbug/backends.py as a symlink, so
that we don't need to regenerate all our old sessions.
(imported from commit b7918988b31c71ec01bbdc270db7017d4069221d)
2013-08-07 11:04:03 -04:00
Tim Abbott
d8f78a5e2d
Fix some remaining references to zephyr.
...
(imported from commit 2072d3451cc08bc32b997d7fafaafd7b6ac568df)
2013-08-07 10:00:08 -04:00
Tim Abbott
1026215512
Update email addresses registered with Nagios.
...
(imported from commit f44cdb9f4ccbf146fbb1bfc17ebcc40270ded794)
2013-08-07 10:00:08 -04:00
Tim Abbott
7232369619
Rename humbug puppet module to zulip.
...
(imported from commit 7ed2a40439a48f4ef47932b345b9fac1a76cbb58)
2013-08-07 10:00:08 -04:00
Tim Abbott
1f1af26048
Change Humbug => Zulip in text/comments.
...
(imported from commit 2f9d73431ae40e1b9e9e11bc2f4f62f566ae758a)
2013-08-07 10:00:07 -04:00
Tim Abbott
e111a2f9a5
[manual] Rename Django app from zephyr to zerver.
...
This needs to be deployed to both staging and prod at the same
off-peak time (and the schema migration run).
At the time it is deployed, we need to make a few changes directly in
the database:
(1) UPDATE django_content_type set app_label='zerver' where app_label='zephyr';
(2) UPDATE south_migrationhistory set app_name='zerver' where app_name='zephyr';
(imported from commit eb3fd719571740189514ef0b884738cb30df1320)
2013-08-06 07:39:36 -04:00
Luke Faraone
b13361708f
Warn users when sshing in to lb0.zulip.net
...
(imported from commit df30627fa6ee5eaf5589eb833879c7e03b204d5c)
2013-07-31 10:50:19 -04:00
Zev Benjamin
0008edc9d5
[manual] Add worker process for processing asynchronous FTS updates
...
Unlike the other workers, this process runs on the database server.
To prevent duplicate work, only the worker on the master actually
processes updates.
To deploy, we in theory just need to apply the new puppet config. In
practice, the database servers aren't on wheezy yet, so the changes
should be applied by hand to postgres0 and postgres1. This only
needs to be done on deploy to staging.
(imported from commit d679ffc0838f9fc8c7f0bede08a5568b339b7ddb)
2013-07-30 18:13:05 -04:00
Luke Faraone
7637574345
Install molly-guard on our servers
...
(imported from commit 8c065763e649a86e50754c738458f09e7d0cf71d)
2013-07-30 17:45:20 -04:00
Luke Faraone
942cc94b04
Install files to customise postgres for maximum performance.
...
Configuration provided by Zev.
(imported from commit 4d0cdbb6747689863208079e2c21864521e1cf02)
2013-07-26 17:11:54 -04:00
Leo Franchi
7b6579c74c
s/humbughq/zulip/ in graphite setup
...
(imported from commit 5c87bbe3d1ae4f57c5f66899b66cbd4417e49887)
2013-07-26 16:23:03 -04:00
Luke Faraone
7c2de24213
Make trac.ini world-readable
...
This is bringing our puppet configuration in line with reality.
(imported from commit 48a10676a9f28566dd89fff1337a4b34c23c0b61)
2013-07-26 16:14:55 -04:00
Luke Faraone
5e2dda4d73
Configuration for puppetized MediaWiki on trac.
...
(imported from commit cff2becbe590e50414f74a31ea2a2914de49f4bd)
2013-07-26 16:14:55 -04:00
Luke Faraone
85988df75d
[third] Import Auth_remoteuser.php into puppet.
...
This is a module we're using for REMOTE_USER support in MediaWiki. It is
not used in any app code nor is it distributed, nor is it incorporated
into any comapny works.
License: GPLv2+
(imported from commit da9a81db251cf850335987697ea8383623b58c53)
2013-07-26 16:14:55 -04:00
Luke Faraone
41504762a1
env-wal-e: Use a different bucket if not running on an app postgres server.
...
(imported from commit e06be77d544532885fbc4769fedb55eedac22ccd)
2013-07-26 16:14:55 -04:00
Luke Faraone
76a58fe800
We are no longer using gitit nor is wiki running off git.zulip.net.
...
(imported from commit fbe1bc2804a5ed6ccecb7b3090b55d7e9fa5b1bc)
2013-07-26 16:14:55 -04:00
Luke Faraone
639d963ff5
Split out app-specific postgres configuration.
...
(imported from commit 979811e69f436d02023a6c62e614a39c19bf64b8)
2013-07-26 16:14:55 -04:00
Tim Abbott
0d077e7f41
[manual] Use api.zulip.com to access the Humbug API.
...
This needs to be deployed after the nginx configuration is deployed.
(imported from commit 167a3d9d27595d40883bb400ebcc44c4ad9b6a2f)
2013-07-25 17:27:46 -04:00
Tim Abbott
4f8f46544c
[manual] Add additional zulip hosts to nginx config.
...
We'll need to do a puppet apply on prod for this to take effect.
(imported from commit 764926317712ed8abebc429fb13d43c755e0f130)
2013-07-25 17:27:45 -04:00
Tim Abbott
9bef184eda
Fix check_send_receive_time always checking prod.
...
The value it is passed is usually https://staging.humbughq.com , not
just staging.humbughq.com.
(imported from commit c3cd8fc5baa767377f506570aa8e7d2e1ed399ec)
2013-07-25 17:27:45 -04:00
Tim Abbott
cdeaceea47
Fix URLs for wiki following mediawiki transition.
...
(imported from commit 140b4f7044f6e68c16d743c0e91dcf5a2557311e)
2013-07-25 17:27:45 -04:00