clustershell
clustershell copied to clipboard
RFE: have some `domain` option
For clusters where search domain doesn't work or where one does not want to leak the short hostnames to DNS servers, one has to use "long" domain names everywhere: group config files, -w, -x etc...
It would be convenient to have a domain automatically appended when used (e.g. in ssh targets) or removed from clush node output so that instead of very long abc.longdomain.tld,def.longdomain.tld,... sequences you would just get abc,def,...
Will be happy to work on that at some point if preferences as to where it should go are given
I can see the need for this, yes. I just wonder if we could do something more generic that just appending a domain. Perhaps a way to provide a method to transform the string before passing it to ssh (or others). Also, the domain should be added after any NodeSet processing, because if it were to contain a digit, this could trigger useless nodeset nD processing.