r/devops • u/GongtingLover • Aug 14 '26
Ops / Incidents How does your team do automated deployments to linux devices in the field?
Right now the team is just ssh-ing into all of the devices and it's a huge time sink.
"I'm not devops so dont crucify me"
48
Upvotes
8
u/spiralenator Aug 14 '26
I used to (2010-11) manage hundreds of tough books with a custom system we wrote ourselves. Updates were just tar balls in a queue. The agent on the device extracted an ran an entry script that did the magic. Because the laptops had unreliable connections, they would check in for updates and pull from the queue. I had a dashboard where I could see what the update status of each device was. Probably would use puppet if I had to do it again.
95
u/UncleObli Aug 14 '26
Ansible. Basically the only requirements are ssh and python.
40
u/martinschmidli Aug 14 '26
Ansible?
31
u/onlyreason4u Aug 14 '26
Deployments of what? What constitutes the field?
26
u/Complete_Wave_6162 Aug 14 '26
Ansible
25
u/tmg80 Aug 14 '26
Ansible.
5
u/Sure_Stranger_6466 YAML Developer Aug 14 '26
Used ansible-pull a few jobs ago.
11
u/gavin101 Aug 14 '26
Puppet?
8
u/coffee-loop Aug 14 '26
Are these iot devices? Or user endpoints?
If iot devices, there should ideally be a pipeline and updater setup for deploying to these devices. Anything but would be painful to relive.
If endpoints, configuration management platforms like puppet, salt stack, ansible should do the trick. But if these endpoints need to connect via vpn to the network to reach the control plane node, then it tends to get a bit messy.
3
u/TeraGigaMax Aug 15 '26
Deploy to Linux device, make no mistake
3
u/PastaFartDust Aug 15 '26
Ansible is a game changer. I was like you, 400 server upgrades over 2 weekends. Hell.
There is a GUI for it too, called Ansible Tower. Very cool for scheduling.
5
u/greyeye77 Aug 14 '26
Gitlab/github CI and push new docket image?
2
u/fearless-fossa Aug 15 '26
Ansible!
In the cases where it isn't allowed (because the owner of the server is paranoid and considers orchestration tools huge security risks that shouldn't be used ever), I have custom python scripts that do 1:1 the same as Ansible.
2
u/abotelho-cbn Aug 15 '26
Puppet. We'd rather have the machines phone home instead of making connections down.
2
u/trippedonatater Aug 16 '26
Ansible or, more recently, kubernetes centered workflows for deployment.
3
u/derprondo Aug 14 '26
I generally prefer a client side cron based polling mechanism for things like this.
2
u/Large-Disaster5920 Aug 15 '26
If they're devices on the edge, my team has used Rancher with Fleet for for CD quite successfully. We even use Rancher Elemental to install the OS in the first place, as well as handle OS and k8s updates etc. It has a few rough edges, but it's a pretty good system overall.
1
u/Darkomen78 Aug 14 '26
Custom scripts for "simple configs" or Ansible.
1
u/danekan Aug 15 '26
Aws ssm
But who is the consumer of these systems you’re updating? There are pros and cons to this vs other things but the use case matters
1
u/ByronScottJones Aug 15 '26
You haven't provided enough information for a well crafted response. Please try again, telling us much more information about the use case specifics.
1
u/sup_bruh_1 Aug 26 '26
we just use latchkey, hooks into github actions with no rewrite needed
1
u/Insomniac24x7 Aug 15 '26
Ansible, terraform + terragrunt
1
u/seizedengine Aug 15 '26
Mender.io is great for appliance/IoT devices.
0
u/djbp Aug 16 '26
Yeah, that 'ssh-ing into all the devices' thing is a real pain. It's definitely a huge time sink, and the risk of manual errors when dealing with multiple deployments is significant. We actually built SnapFlow to address this exact problem for DevOps teams. It helps automate infrastructure changes securely by allowing you to plan them out meticulously, execute them in isolated containers to prevent unintended side effects, and then verify the results against your desired cloud state. This approach not only eliminates many common manual errors but also makes the entire deployment process far more auditable and reliable, which is crucial for maintaining control and compliance in complex environments. Understanding more about your specific setup, particularly the types of Linux devices you're deploying to in the field, could help in discussing more tailored strategies for automation.
-10
u/chocopudding17 Aug 14 '26
I'm sorry, but do a bit of research before posting on a message board.
It's 2026 and you haven't managed to Google how to automate manual SSHing? Ansible has been a thing forever at this point. If you can't manage to find that with your own research, you have no place helping make decisions for this hapless team.
-1
u/djbp Aug 16 '26
Yeah, that 'ssh-ing into all the devices' thing is a real pain. It's definitely a huge time sink, and the risk of manual errors when dealing with multiple deployments is significant. We actually built SnapFlow to address this exact problem for DevOps teams. It helps automate infrastructure changes securely by allowing you to plan them out meticulously, execute them in isolated containers to prevent unintended side effects, and then verify the results against your desired cloud state. This approach not only eliminates many common manual errors but also makes the entire deployment process far more auditable and reliable, which is crucial for maintaining control and compliance in complex environments. Understanding more about your specific setup, particularly the types of Linux devices you're deploying to in the field, could help in discussing more tailored strategies for automation.
1
u/gogorichie DevOps Aug 15 '26
If you’re feeling froggy, I would use Aer IOT hub if not so froggy then ansible 👌🏾
2
u/[deleted] Aug 19 '26
[removed] — view removed comment