Skip to content

Golang wrapper to clush (clustershell) command

Notifications You must be signed in to change notification settings

Devatoria/go-clush

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages