All Projects → mxssl → cmd-runner

mxssl / cmd-runner

Licence: Apache-2.0 license
Execute commands on remote hosts asynchronously over ssh

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to cmd-runner

open-scd
A substation configuration description editor for projects using SCL IEC 61850-6 Edition 2 or greater
Stars: ✭ 35 (+45.83%)
Mutual labels:  configuration
dotfiles
🏡 There's no place like ~/
Stars: ✭ 59 (+145.83%)
Mutual labels:  configuration
onion
Layer based configuration for golang
Stars: ✭ 104 (+333.33%)
Mutual labels:  configuration
habitat
Easily configure settings for Crystal projects
Stars: ✭ 73 (+204.17%)
Mutual labels:  configuration
salak.rs
A multi layered configuration loader and zero-boilerplate configuration parser.
Stars: ✭ 27 (+12.5%)
Mutual labels:  configuration
config
Config component, strictly typed
Stars: ✭ 14 (-41.67%)
Mutual labels:  configuration
configuro
An opinionated configuration loading framework for Containerized and Cloud-Native applications.
Stars: ✭ 81 (+237.5%)
Mutual labels:  configuration
zcolors
🌈 Z Colors uses your $LS_COLORS to generate a coherent theme for Git and your Zsh prompt, command line and completions.
Stars: ✭ 38 (+58.33%)
Mutual labels:  configuration
configuration-service
Configuration Service is a distributed configuration provider for .NET Core.
Stars: ✭ 62 (+158.33%)
Mutual labels:  configuration
Project
Infrastructure
Stars: ✭ 43 (+79.17%)
Mutual labels:  configuration
envkey-node
EnvKey's official Node.js client library
Stars: ✭ 46 (+91.67%)
Mutual labels:  configuration
Selenium-Foundation
Selenium Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium (WebDriver).
Stars: ✭ 51 (+112.5%)
Mutual labels:  configuration
nginx-conf
Nginx configuration
Stars: ✭ 18 (-25%)
Mutual labels:  configuration
CoSky
High-performance, low-cost microservice governance platform. Service Discovery and Configuration Service | 高性能、低成本微服务治理平台
Stars: ✭ 57 (+137.5%)
Mutual labels:  configuration
Machfiles
The dotfiles you see in all my videos
Stars: ✭ 347 (+1345.83%)
Mutual labels:  configuration
unity-auto-preset
Auto Preset enables scriptable configuration of assets from the Unity Editor without requiring any additional code.
Stars: ✭ 19 (-20.83%)
Mutual labels:  configuration
network tech
Cisco config syntax and snippets for Sublime Text
Stars: ✭ 82 (+241.67%)
Mutual labels:  configuration
pyhaproxy
Python library to parse haproxy configurations
Stars: ✭ 50 (+108.33%)
Mutual labels:  configuration
tomlj
A Java parser for Tom's Obvious, Minimal Language (TOML).
Stars: ✭ 72 (+200%)
Mutual labels:  configuration
case-classy
configuration with less hassle
Stars: ✭ 68 (+183.33%)
Mutual labels:  configuration

cmd-runner

Execute commands on remote hosts asynchronously over ssh

Installation

Download compiled binary for your system

Linux

MacOS

Example

wget https://github.com/mxssl/cmd-runner/releases/download/0.0.4/cmd-runner-linux-amd64 -O cmd-runner
mv cmd-runner /usr/local/bin/cmd-runner
chmod +x /usr/local/bin/cmd-runner/cmd-runner

How to run

Usecase 1

Run commands from local file

  1. Create config file - config.toml

Example:

# Credentials
username = "root"
password = "password"

# SSH private and public keys
ssh_private_key = "/home/user/.ssh/id_rsa"
ssh_public_key = "/home/user/.ssh/id_rsa.pub"

# SSH port
ssh_port = "22"

# Connection method: "key" or "password"
connection_method = "key"

# Remote hosts
hosts = [
	"1.1.1.1",
	"2.2.2.2",
	"3.3.3.3"
]

# File with commands for "cmd-runner start" command
commands_file = "commands.txt"

# > Full < source and destination path to file for "cmd-runner copy" command 
source_path = "/opt/scripts/script.sh"
destination_path = "/tmp/script.sh"
  1. Create file with commands that you want to run on remote hosts - commands.txt

Example:

apt-get update
apt-get upgrade -y
  1. Start program cmd-runner start

If you want files with stdout per host then start cmd-runner with key:

cmd-runner start --file

cmd-runner will create files hostname-output.txt

Usecase 2

Copy local file to remote hosts

  1. The same as Usecase 1

  2. Start program cmd-runner copy

Usecase 3

Combine Usecase 1 and Usecase 2

You can copy bash script to remote hosts with cmd-runner copy and run this script with cmd-runner start

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].