News for hackers. Stuff that matters.
Re:Servers are fun: Ansible by 0x0 on Saturday August 23, 2014 @10:33AM (#8215904)
For a more low-tech solution, I've found cssh / csshX ("Cluster SSH") quite the timesaver. It pops up a bunch of xterms/Terminal.app windows and lets you type in one window while sending the keystrokes to all of the ssh sessions simultaneously.
Re:Servers are fun: Ansible by mpdehaan2 on Saturday August 23, 2014 @11:36AM (#8216038)
The problem with cluster SSH is it's not declarative, so if one server already has a package, and another does not, your servers will not behave the same if typing into all of them.

This is why Ansible modules (and most other config tools) instead describe the desired end state, and perform the commands needed to get you to those states.

Basically all config tools arose out of a need for solutions to replace parallel scripting with something more robust that accounted for potential variance between systems, and also to make things more push-button.

Re:Servers are fun: Ansible by _delirium on Saturday August 23, 2014 @11:52AM (#8216078)
I can see that for some kinds of admin tasks, but why package management? At least on Debian, the package manager is already declarative: There's an install/upgrade planner that figures out how to get from the current system state to the final desired state, given constraints such as packages' declared Requires/Conflicts/etc. lines. If the system is already at that state, it does nothing.
Re:Servers are fun: Ansible by weaksauce on Saturday August 23, 2014 @12:26PM (#8216154)
How often is setting up a package just running apt-get? There is an overwhelming majority of times where you have to change something in the config file somewhere. Ansible can do anything you want to provision your boxes.
Re:Servers are fun: Ansible by invertedohm on Saturday August 23, 2014 @12:18PM (#8216136)
Indeed, cssh is great for getting a quick visual on a few servers, but you're pretty much limited to what will fit on your screen. Ansible really shines when you scale it up a bit further, and it grows well, allowing you to add bits and pieces as needed.

The hosts/inventory in ansible as a source of truth for your infrastructure is also a nice feature. You could use a selection from your ansible inventory to open a cssh with 'top' running on all your webservers, for example.