You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org
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 logging.basicConfig(level=logging.DEBUG) 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
sreal are two instances of Spicerack like the ones passed to the Spicerack/Cookbooks with the dry-run mode set to