Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

what is the use case? why wouldn't you use something else (like ansible or puppet or something)? I do not understand why someone would do things like this.


Why would anyone use Ansible or Puppet for running shell commands on remote servers? Such an overkill.


well usually it's already in place, right? maybe at home it wouldn't be, but at work, that stuff would already be in place on the stock OS install.

and I would be afraid to run SSH commands on multiple machines at once in case one of them errored out and needed manual intervention. ansible or puppet would let me know about that stuff.


If it is already in place, then sure, why not. Not using what is already there would just be a waste, IMO.


I guess I don't understand why running a command in multiple places at once is preferable to running a shell script in four places in sequence.

maybe it's me! there is approximately zero chance that running the same script on four of my machines would result in four cleanly run scripts. one or more would fail, and if more than one failed, they would each fail for a different reason.


You said Ansible and Puppet, they are not installed by default on any Linux distributions or BSDs that I know of.

I personally do not prefer "run command in multiple places at once" over "run command in four places in sequence", however. I think it would just be a "random" choice in my case, and I might just write a script that does either. I do not mind as long as it is a one-time thing, but if I would have to do this more than once, I would just automate it, via scripts. I would probably just have it run in sequence.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: