salt-ssh without roster file

411 views
Skip to first unread message

Mathieu Drapeau

unread,
Mar 30, 2015, 2:57:26 PM3/30/15
to salt-...@googlegroups.com
I am trying to use salt-ssh a bit like pdsh or clustershell.
So by providing a list of hosts or ip addresses WITHOUT using a roster file but it doesn't seem to work.

Here is the command and what it returns:
salt-ssh --roster scan 10.10.1.4 test.ping
No hosts found with target 10.14.83.218 of type glob

Also, is it possible to give a list of servers using their hostnames like such:   test_server[1-4]
Also, is it possible to use another user and not root?

thanks

Mathieu Drapeau

unread,
Apr 1, 2015, 11:55:36 AM4/1/15
to salt-...@googlegroups.com

Colton Myers

unread,
Apr 6, 2015, 7:10:28 PM4/6/15
to salt-...@googlegroups.com
Here is the command and what it returns:
salt-ssh --roster scan 10.10.1.4 test.ping
No hosts found with target 10.14.83.218 of type glob

That is very strange, that it's apparently targeting a different IP than the one you provided for the command...

Try `salt-ssh --roster=scan 10.10.1.4 test.ping` instead, maybe?

We could definitely add a command line flag for changing the user for the scan roster. Would you mind opening an issue for that?

Thanks!

--
Colton Myers
Platform Engineer, SaltStack
@basepi on Twitter/Github/IRC

On Wed, Apr 1, 2015 at 9:55 AM, Mathieu Drapeau <matdr...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages