An open API service indexing awesome lists of open source software.

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

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