News for hackers. Stuff that matters.
Re:A Gentle introduction to Kubernetes with more than just t... by mattbillenstein on Friday September 20, 2019 @03:39AM (#21024113)
I haven't used ansible in a few years, but I sorta loathed the transport after a time with even dozens of boxes -- constantly creating ssh connections was slowing things down significantly.

I switched to saltstack some time back and it's much better while having a similar sorta interface. The docs are worse than ansible imo tho. ymmv

Re:A Gentle introduction to Kubernetes with more than just t... by pferde on Friday September 20, 2019 @07:22AM (#21025361)
You shouldn't be creating ssh connections all the time, but instead using persistent connection to each server that ansible opens once at the beginning, and reuses for all subsequent tasks.

See ControlPersist/ControlPath OpenSSH client configuration.

Re:A Gentle introduction to Kubernetes with more than just t... by fanf2 on Saturday September 21, 2019 @09:06AM (#21035121)
And for even more speedup, use Mitogen https://mitogen.networkgenomics.com/ansible_detailed.html
Re:A Gentle introduction to Kubernetes with more than just t... by mattbillenstein on Friday September 20, 2019 @04:11PM (#21030736)
Never found this incredibly reliable - and if you change networks, sleep, or power off your machine, those connections die. Salt is just better at all of this imho.
Re:A Gentle introduction to Kubernetes with more than just t... by pferde on Saturday September 21, 2019 @02:46PM (#21037120)
Do you often do these things in the middle of running a playbook? I would hope not. :)

It's not meant to have the connections persist forever, just long enough for repeated short ssh connections to have almost no overhead, and therefore be much faster.

Re:A Gentle introduction to Kubernetes with more than just t... by mattbillenstein on Monday September 23, 2019 @06:03PM (#21054239)
Yeah, good point.
Re:A Gentle introduction to Kubernetes with more than just t... by mattbillenstein on Friday September 20, 2019 @07:43PM (#21032419)
I mean, I guess if you use a dedicated host, it's more reliable - but I've always just pushed from the client using Ansible whereas with Salt you have the master running the cloud running somewhere most usually.