RexOps / rexify-website

Website content and code for rexify.org
https://www.rexify.org
14 stars 31 forks source link

Show example with multiple hosts on main page #164

Open ferki opened 1 year ago

ferki commented 1 year ago

On the rexify.org main page is an example with the quoted hostname however it doesn't contain spaces so it's easy to miss.

The rex command help mentions -H takes space delimited hostnames but there isn't an example so it's easy to miss the need for quotes.

This command line example will execute uptime on all the given hosts (frontend01, frontend02, ...): $ rex -H "frontend[01..05]" -e "say run 'uptime'"

I would suggest adding something like this as a follow up to the existing example.

This command line example will execute uptime on all the given hosts (foo, bar, baz): $ rex -H "foo bar baz" -e "say run 'uptime'"

Originally posted by @mrmuskrat in https://github.com/RexOps/Rex/issues/648#issuecomment-1769054542