zulip/scripts/setup
Alex Vandiver 01e8f752a8 puppet: Use certbot package timer, not our own cron job.
The certbot package installs its own systemd timer (and cron job,
which disabled itself if systemd is enabled) which updates
certificates.  This process races with the cron job which Zulip
installs -- the only difference being that Zulip respects the
`certbot.auto_renew` setting, and that it passes the deploy hook.
This means that occasionally nginx would not be reloaded, when the
systemd timer caught the expiration first.

Remove the custom cron job and `certbot-maybe-renew` script, and
reconfigure certbot to always reload nginx after deploying, using
certbot directory hooks.

Since `certbot.auto_renew` can't have an effect, remove the setting.
In turn, this removes the need for `--no-zulip-conf` to
`setup-certbot`.  `--deploy-hook` is similarly removed, as running
deploy hooks to restart nginx is now the default; pass
`--no-directory-hooks` in standalone mode to not attempt to reload
nginx.  The other property of `--deploy-hook`, of skipping symlinking
into place, is given its own flog.
2021-12-09 13:47:33 -08:00
..
apt-repos scripts: Use curl -f (--fail). 2021-07-13 16:47:49 -07:00
__init__.py setup: Add missing __init__.py. 2021-07-05 12:20:39 -07:00
compare-settings-to-template scripts: Fix running compare-settings-to-template from any CWD. 2021-12-07 14:45:53 -08:00
configure-rabbitmq configure-rabbitmq: Increase startup timeout. 2021-12-03 14:32:23 -08:00
create-db.sql create-db: Default dbuser and dbname to zulip. 2021-05-26 17:19:11 -07:00
create-pgroonga.sql postgres-create-db: Split into non-pgroonga and pgroonga scripts. 2019-07-17 16:18:22 -07:00
flush-memcached memcached: Switch from pylibmc to python-binary-memcached. 2020-08-06 12:51:14 -07:00
generate_secrets.py settings: Support arbitrary database user and dbname. 2021-05-25 13:46:58 -07:00
generate-self-signed-cert shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
initialize-database docs: Add missing space to compound verbs “log in”, “set up”, etc. 2021-04-26 09:31:08 -07:00
inline_email_css.py python: Remove locally dead code. 2021-08-19 01:51:37 -07:00
install install: Use a period at end of root error message. 2021-06-23 08:42:46 -07:00
postgresql-init-db postgresql-init-db: Support arbitrary database user and dbname. 2021-05-25 13:56:04 -07:00
reindex-textual-data reindex-textual-data: Provide a tool to reindex all text indices. 2021-07-19 16:34:23 -07:00
restore-backup python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
setup-certbot puppet: Use certbot package timer, not our own cron job. 2021-12-09 13:47:33 -08:00
sha256-tarball-to scripts: Use curl -f (--fail). 2021-07-13 16:47:49 -07:00
terminate-psql-sessions terminate-psql-sessions: Rely on the caller to set PGHOST, PGUSER. 2020-06-15 21:37:14 -07:00
upgrade-postgresql upgrade-postgresql: Check for extension upgrade steps. 2021-11-20 07:13:50 -08:00