zulip/scripts/lib
Alex Vandiver c0e240277b tornado: Remove fingerprinting, write out .tmp files always.
Fingerprinting the config is somewhat brittle -- it requires either
custom bootstrapping for old (fingerprint-less) configs, and may have
false-positives.

Since generating the config is lightweight, do so into the .tmp files,
and compare the output to the originals to determine if there are
changes to apply.

In order to both surface errors, as well as notify the user in case a
restart is necessary, we must run it twice.  The `onlyif`
functionality cannot show configuration errors to the user, only
determine if the command runs or not.  We thus run the command once,
judging errors as "interesting" enough to run the actual command,
whose failure will be verbose in Puppet and halt any steps that depend
on it.

Removing the `onlyif` would result in `stage_updated_sharding` showing
up in the output of every Puppet run, which obscures the important
messages it displays when an update to sharding is necessary.
Removing the `command` (e.g. making it an `echo`) would result in
removing the ability to report configuration errors.  We thus have no
choice but to run it twice; this is thankfully low-overhead.
2020-09-25 10:52:40 -07:00
..
third install-yarn: Fix buggy status check for the signature. 2018-04-09 15:09:37 -07:00
__init__.py Factor out venv-creating code from provision.py. 2016-06-21 11:25:41 -07:00
build-pgroonga provision: Added provision support for Ubuntu 20.04(Focal). 2020-03-17 14:57:14 -07:00
certbot-maybe-renew certbot: Switch to use certbot from apt. 2020-06-08 21:59:29 -07:00
check_rabbitmq_queue.py queue: Increase allowed expected_time_to_clear_backlog for embed_links. 2020-09-21 15:24:04 -07:00
clean_emoji_cache.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
clean_node_cache.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
clean_venv_cache.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
clean-unused-caches python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
create-production-venv python: Replace list literal concatenation with * unpacking. 2020-09-02 11:15:41 -07:00
create-thumbor-venv python: Replace list literal concatenation with * unpacking. 2020-09-02 11:15:41 -07:00
email-mirror-postfix python: Elide type=str from argparse arguments. 2020-09-03 16:17:14 -07:00
hash_reqs.py hash_reqs: Include python version when generating hash. 2020-07-13 13:06:15 -07:00
install puppet: --noop implies --force (i.e. no prompt). 2020-08-02 12:47:31 -07:00
install-node install-node: Upgrade Node.js to 12.18.4 and Yarn to 1.22.5. 2020-09-15 16:33:28 -07:00
node_cache.py python: Replace list literal concatenation with * unpacking. 2020-09-02 11:15:41 -07:00
pythonrc.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
queue_workers.py python: Elide action="store" for argparse arguments. 2020-09-03 16:17:14 -07:00
setup_path.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
setup_venv.py python: Prefer --flag=option over --flag option. 2020-09-03 17:51:09 -07:00
setup-apt-repo installer: Remove code specific to stretch or xenial. 2020-06-24 12:57:38 -07:00
setup-apt-repo-debathena installer: Remove code specific to stretch or xenial. 2020-06-24 12:57:38 -07:00
setup-yum-repo memcached: Switch from pylibmc to python-binary-memcached. 2020-08-06 12:51:14 -07:00
sharding.py tornado: Remove fingerprinting, write out .tmp files always. 2020-09-25 10:52:40 -07:00
unpack-zulip python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
upgrade-zulip python: Replace list literal concatenation with * unpacking. 2020-09-02 11:15:41 -07:00
upgrade-zulip-from-git python: Replace list literal concatenation with * unpacking. 2020-09-02 11:15:41 -07:00
upgrade-zulip-stage-2 tornado: Remove explicit tornado_processes setting; compute it. 2020-09-18 15:13:40 -07:00
zulip_tools.py tornado: Remove explicit tornado_processes setting; compute it. 2020-09-18 15:13:40 -07:00