Jump to content

User:Razzi/Developing cookbook locally

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

First install spicerack:

pip install wikimedia-spicerack

I installed ipython but this gave version incompatibilities with click for elasticsearch-curator, so I uninstalled it and black.

After that, I added the following minimal configuration:

cookbooks $ cat /etc/spicerack/config.yaml
cookbooks_base_dir: /Users/rabuissa/work/cookbooks/
logs_base_dir:  /var/log/spicerack

Then the aqs cookbook parsed arguments correctly:

(venv) operations-software-spicerack $ cookbook sre.aqs.roll-restart
usage: cookbook [-h] {aqs}
cookbook: error: the following arguments are required: cluster

The venv is in /Users/rabuissa/forks/operations-software-spicerack/venv.