zulip/puppet/zulip_internal/manifests
Zev Benjamin 631783f3cd [manual] Use dedicated Redis server for staging
Before we deploy this commit, we must migrate the data from the staging redis
server to the new, dedicated redis server.  The steps for doing so are the
following:

* Remove the zulip::redis puppet class from staging's zulip.conf
* ssh once from staging to redis-staging.zulip.net so that the host key is known
* Create a tunnel from redis0.zulip.net to staging.zulip.net
  * zulip@redis0:~$ ssh -N -L 127.0.0.1:6380:127.0.0.1:6379 -o ServerAliveInterval=30 -o ServerAliveCountMax=3 staging.zulip.net
* Set the redis instance on redis0.zulip.net to replicate the one on staging.zulip.net
  * redis 127.0.0.1:6379> slaveof 127.0.0.1 6380
* Stop the app on staging
* Stop redis-server on staging
* Promote the redis server on redis0.zulip.net to a master
  * redis 127.0.0.1:6379> slaveof no one
* Do a puppet apply at this commit on staging (this will bring up the tunnel to redis0)
* Deploy this commit to staging (start the app on staging)
* Kill the tunnel from redis0.zulip.net to staging.zulip.net
* Uninstall redis-server on staging

The steps for migrating prod will be the same modulo s/staging/prod0/.

(imported from commit 546d258883ac299d65e896710edd0974b6bd60f8)
2014-02-10 13:23:28 -05:00
..
apache.pp puppet: Comment the dependency lists for some service manifests. 2013-11-09 07:28:19 -05:00
app_frontend.pp [manual] Use dedicated Redis server for staging 2014-02-10 13:23:28 -05:00
base.pp Switch to puppetlabs/apt 2014-01-31 13:43:04 -05:00
bots.pp [manual]: Rename zulip-internal puppet module to zulip_internal. 2013-11-05 17:06:32 -05:00
builder.pp puppet: Organize the puppet configuration for various internal services. 2013-11-09 07:28:19 -05:00
git.pp [manual]: Rename zulip-internal puppet module to zulip_internal. 2013-11-05 17:06:32 -05:00
init.pp [manual]: Rename zulip-internal puppet module to zulip_internal. 2013-11-05 17:06:32 -05:00
loadbalancer.pp puppet: Fix permissions on /etc/cron.d/log2zulip. 2013-12-17 16:22:14 -05:00
mediawiki.pp puppet: Organize the puppet configuration for various internal services. 2013-11-09 07:28:19 -05:00
nagios.pp puppet: Add monitoring for camo. 2013-11-19 15:25:14 -05:00
postgres_appdb.pp [manual]: Rename zulip-internal puppet module to zulip_internal. 2013-11-05 17:06:32 -05:00
postgres_common.pp puppet: Update env-wal-e to take the S3 bucket to use from /etc/zulip/zulip.conf 2014-01-16 15:23:21 -05:00
postgres_master.pp puppet: Move the removal of 30-postgresql-shm.conf into zulip::postgres_appdb 2013-11-13 12:02:01 -05:00
postgres_slave.pp puppet: Move the removal of 30-postgresql-shm.conf into zulip::postgres_appdb 2013-11-13 12:02:01 -05:00
prod_app_frontend.pp [manual] Enable local email mirror on all frontends. 2014-02-06 10:26:56 -05:00
redis.pp puppet: Add manifest for dedicated Redis server 2014-02-10 13:23:28 -05:00
staging_app_frontend.pp [manual] Use dedicated Redis server for staging 2014-02-10 13:23:28 -05:00
stats.pp [manual]: Rename zulip-internal puppet module to zulip_internal. 2013-11-05 17:06:32 -05:00
trac.pp puppet: Organize the puppet configuration for various internal services. 2013-11-09 07:28:19 -05:00
zmirror.pp Convert zmirror to use puppet apt module for debathena sources 2014-01-31 13:43:04 -05:00
zmirror_personals.pp puppet: Organize the puppet configuration for zmirror. 2013-11-09 07:28:18 -05:00