https://github.com/devatoria/go-clush
Golang wrapper to clush (clustershell) command
https://github.com/devatoria/go-clush
Last synced: about 1 year ago
JSON representation
Golang wrapper to clush (clustershell) command
- Host: GitHub
- URL: https://github.com/devatoria/go-clush
- Owner: Devatoria
- Created: 2017-06-06T09:14:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T14:12:43.000Z (over 8 years ago)
- Last Synced: 2025-03-28T16:46:11.195Z (over 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-clush
go-clush is a simple golang library wrapping the clush (clustershell) command.
## Example
```go
package main
import (
"fmt"
"github.com/Devatoria/go-clush"
)
func main() {
// Will run "clush -g webservers puppet agent -t"
ret, _ := clush.RunOnGroup("webservers", "puppet agent -t")
fmt.Println("Stdout: ", ret.Stdout)
fmt.Println("Stderr: ", ret.Stderr)
}
```
## Features
- [ ] Run on all
- [x] Run on group
- [x] Run on nodes
- [x] Exclude nodes from nodes
- [ ] Exclude nodes from group