-
Notifications
You must be signed in to change notification settings - Fork 74
iterate host
Joe Kaiser edited this page Dec 29, 2017
·
2 revisions
stack iterate host [host ...] {command=string}
Iterate sequentially over a list of hosts. This is used to run
a shell command on the frontend with with '%' wildcard expansion for
every host specified.
-
{host}
Zero, one or more host names. If no host names are supplied iterate over all hosts except the frontend.
-
[command=string]
The shell command to be run for each host. The '%' character is used as a wildcard to indicate the hostname. Quoting of the '%' to expand to a literal is accomplished with '%%'.
-
stack iterate host backend command="scp file %:/tmp/"
Copies file to the /tmp directory of every backend node
Checkout our Google Group or our Slack Team for any support or other questions.
Want to contribute to this Wiki? Fork it and send a pull request.