r/linuxadmin • u/rustyantenna • 12d ago
What do hiring teams mean by "python automation" in Linux deployment and configuration context
Hello,
Ive been looking at job postings and I see often they say python automation. The roles are infra, linux, systems engineer, etc.. What exactly do employers mean when they say python automation in this context?
From my experience for automating deployments on bare metal youd use things like poe, wal, pxe, for virtual/cloud terraform, for images packer, for configuration ansible and bash, etc.. Where exactly does python fit in?
Can you give some examples of workflows where python can be beneficial to automate (particularly in a linux related context).
Or do they mostly mean developing internal tooling that provides some custom functionality (or perfomance benefit vs bash) which the above tools lack of?
20
u/owzleee 12d ago
Python is great for automation if you don’t need low latency.
If you build it correctly, the error handling is vastly superior to bash.
Just don’t use too many exotic modules if you are in a corporate environment because that’s a lot of paperwork and ownership.
26
u/nicholashairs 12d ago
They mean internal tooling where you want something much more robust than a shell script.
For instance a rolling deployment with automated tests and rollback.
Deployment of what? Well depends on your stack and what it supports.
13
u/DrCrayola 12d ago
Old scripts they've been using to do specific things. Remove a user from an AD group, deploy a template in vsphere, install 5 things at once, etc. I'm a bash and ansible guy myself who cut his teeth on pxeboot, so I get it feels unnatural in ways.
13
u/snark42 12d ago
Ansible is largely python, especially if you extend it, and some places might mean just that. Others likely they have existing python CI/CD/Deployment/Configuration systems you'd have to maintain.
4
u/dacydergoth 12d ago
A lot of our smoke tests are written in python. Terraform deploys infra, but the smoke tests confirm it is correct
4
u/mriswithe 12d ago
They likely mean what I call glue scripts.
Image here is docker image.
2
u/NegativeK 12d ago
Ansible modules are written in Python.
2
u/Open-Adhesiveness-86 11d ago
a lot of it is the ansible extension points, which nobody lists as "python" but is. dynamic inventory is usually the first one you hit, and the gotcha there is you have to return _meta.hostvars from the single --list call, otherwise ansible shells out --host once per machine and a few hundred nodes takes minutes instead of seconds. after that it's custom modules, filter/lookup plugins, and whatever API the vendor only ships a python SDK for.
1
u/I_only_run_late 11d ago
In my experience it's mostly the stuff between the tools. Pulling an inventory from some vendor API, comparing it against what's actually deployed and opening a ticket for anything that drifted. Config management can do it but it gets ugly fast, a 50 line Python script is easier for the next person to read.
1
u/GamerLymx 11d ago
ansible
1
u/nian2326076 8d ago
Python automation in the context of Linux deployment usually means developing scripts or tools that provide more robust functionality than traditional shell scripts. It can be used for managing deployment workflows, automating configuration management, or integrating with various tools' APIs. Python's strong error handling and extensive libraries make it ideal for complex tasks.
For job opportunities in related fields, you can use LandOffer to find relevant roles that require Python automation skills.