Once you’ve written your Salt states to install, configure, and manage your hundreds-of-nodes cluster, you have the building blocks for fully automating difficult tasks—like conducting a zero-downtime rolling upgrade of a 200-node Elasticsearch cluster. We took our Salt states and used Salt’s Python API to write a script that handles boring things like patches & updates. But it also turned a task that kept us up until 2 in the morning into a simple “set it and forget it” job. It even works over salt-ssh!
We’ll go over:
- The basics of the Python API
- Show you what code is being fired when you run your command lines
- Show you how you can use the job return data to make intelligent decisions in your code.
Outage window? What outage window?