4 ms·
I'm in ops and python is pre-installed on debian and fedora so besides writing stuff in bash, python is my next best thing without installing other languages.
by hitsurume 9y ago
I'm in ops and python is pre-installed on debian and fedora so besides writing stuff in bash, python is my next best thing without installing other languages. I would like to do more advanced things in python but I don't have any big projects / automation in my head yet.
- dozzie 9y agoHow about moving any (all) calls to /usr/bin/ssh to run a script on a remote server? Like running deployment, upgrades, or creating home directories and mail folders for a new user? http://harpcaller.jarowit.net/ http://harpcaller.jarowit.net/ (https://github.com/dozzie/harpcaller https://github.com/dozzie/harpcaller)
- hitsurume 9y agoWe do this using Ansible (Written in python haha). So we have that covered there =)
- dozzie 9y agoI would say that Ansible, with its all SSH baggage, is quite poor method of running remote procedures, especially when it's mixed with maintaining configuration. But d'oh, it's the usual way people abuse it.
- odonnellryan 9y agoops is a great place for Python. How about backups? Backup monitoring? Don't roll your own monitoring solution, but tie Python scripts into Nagios, etc..
- hitsurume 9y agoYea i'm tying python into that stuff where I can. But i'm hoping to do something not ops related with Python eventually. Maybe implement my own monitoring dashboard with django and some other front end framework.
- odonnellryan 9y agoWrite a React app with Flask. You can write something in <1000 LOC that actually does something.
- effie 9y ago> Don't roll your own monitoring solution, but tie Python scripts into Nagios... Why should a sysadmin use Nagios at all?
- odonnellryan 9y agoWhy not? Why wouldn't they? Real question. I'd think SySAdmins would use Nagios more than any other role, no?