Devatoria / go-clush

Golang wrapper to clush (clustershell) command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-clush

go-clush is a simple golang library wrapping the clush (clustershell) command.

Example

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
  • Run on group
  • Run on nodes
  • Exclude nodes from nodes
  • Exclude nodes from group

About

Golang wrapper to clush (clustershell) command


Languages

Language:Go 100.0%