[CentOS] use pssh to restart a service

Sat Oct 31 21:34:50 UTC 2015
Gordon Messmer <gordon.messmer at gmail.com>

On 10/31/2015 02:04 PM, Tim Dunphy wrote:
> pssh -h es_list   "/bin/sudo -S /bin/systemctl restart elasticsearch"

The default configuration prohibits use if input echo can't be 
disabled.  That means no "-S".

I modify that for users where necessary:

/etc/sudoers.d/myuser:
     Defaults:myuser    !requiretty, visiblepw