You are browsing a read-only backup copy of Wikitech. The primary site can be found at


From Wikitech-static
Revision as of 09:09, 14 June 2021 by imported>Jobo
Jump to navigation Jump to search

Spicerack is a Python library to orchestrate tasks in the Wikimedia Foundation production environment. It comes with an easy API and a cookbook entry point script that allows to write simple Cookbooks to automate and orchestrate tasks.

See the Spicerack documentation.

Test newly released Spicerack features

In order to test changes included in a new Spicerack release, upgrade the spicerack package on a single host (usually cumin2001) and then within a Python shell (sudo -i python3) run:

import logging
from spicerack import Spicerack
s = Spicerack(verbose=True, dry_run=True)  # An instance of Spicerack with dry-run set to True
# ATTENTION: sreal will make read-write changes to the infrastructure!!!
sreal = Spicerack(verbose=True, dry_run=False)  # An instance of Spicerack with dry-run set to False

At this point s and sreal are two instances of Spicerack like the ones passed to the Spicerack/Cookbooks with the dry-run mode set to True and False respectively.