Archive for the ‘ python ’ Category

Spacewalk Errata integration for Slack

We are using Slack at our company and we are having a #emergency room for collboration during critical situation. I thought it would be nice to have Spacewalk Errata information posted there additionally to the emails Spacewalk sends us.

So I made a small python script which can be run as a cron and collects all relevant security Errata affecting at least one system. It then posts those to a Slack channel or group.

Read more

Playing with YUM API

I was migrating from one server to another and because I love python, I really try to involve it into each and every script I’m writing.
So I saved all of my installed packages in a text file called installed.txt , and using the yum python API, I managed to install all the needed packages as easy as this:

Read more