Skip to content

Commit

Permalink
Merge pull request #7 from yuriescl/documentation
Browse files Browse the repository at this point in the history
updated README
  • Loading branch information
yuriescl authored Sep 22, 2019
2 parents 1dac98c + 783a045 commit c5737bb
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,23 @@ See the `-g` flag.
```

### Examples
#### Restart Apache webserver in two hosts
Restart Apache webserver in two hosts
```
runoverssh root "systemctl restart apache2" webserver webserver2
```

#### Reboot three hosts, which contain the same root password. Writes the SSH output to `reboot.log`.
Reboot three hosts, which contain the same root password. Writes the SSH output to `reboot.log`.
```
runoverssh --logfile reboot.log --globalpw root "reboot" host1 host2 host3
```

#### Run puppet agent in all nodes listed in `puppet-nodes`, supressing the output
Run puppet agent in all nodes listed in `puppet-nodes`, supressing the output
```
runoverssh -q -g -r puppet-nodes root "puppet agent -t"
```

#### Check git status on devmachine
Check git status on devmachine
```
runoverssh remoteuser "cd git-project && git status" devmachine
```

#### Run backup script in all hosts listed in a file
Run backup script in all hosts listed in a file
```
runoverssh -g --script backup.sh --hostsfile hostlist remoteuser
```

0 comments on commit c5737bb

Please sign in to comment.