SaltStack-Logo

Correctly upgrading your Python application with SaltStack

If you work with Python applications or deal with configuration management in general, you might have run into limitations with the pip tool. Unfortunately, their implementation of upgrade doesn’t really perform an “upgrade” as most people would think. If you are frustrated familiar with SaltStack‚Äôs pip state not upgrading already installed packages when you run…

UPDATED: Python script to check Twitter

Ok, so it took all of about 10 minutes for me want to change something on my previous script. The functionality was there, but the plain text emails were horribly ugly. So I re-worked the email to use MIME html messages that are much prettier along with alternate plain text. New code below. Nice, pretty…

Python script to check Twitter

Updated article here. Micro-blogging is all the rage now and lucky for me, the local food trucks use it. There is a local spot that they like to come and they post on Twitter when they will be serving. I do not have a Twitter account, nor do I want one, but I still want…

Install/Upgrade Trac on CentOS 5.5 with Python2.6

I recently had to upgrade our production Subversion/Trac server to use Python2.6. Normally with yum, this wouldn’t be such a big deal, but python2.6 is not in the CentOS repos. And specifically, I needed Trac built with python2.6 support. So I grabbed python from the EPEL repos. You do NOT want to remove the installed…

Python script to download virus definitions

Part of my daily responsibilities are to update our virus definitions daily on our networks. These networks are private LANs and do not have access to the Internet. Repeatedly going to the same site and downloading then became a chore, so I wrote this script, added it to a cron job and viola! Daily definitions…