Git Product home page Git Product logo

app-ssh-cluster's Introduction

Build Status Coverage Status Kwalitee status

NAME

App::SSH::Cluster - CLI to Net::OpenSSH that runs the same command via SSH on many remote servers at the same time

VERSION

version 0.004

SYNOPSIS

use App::SSH::Cluster;
App::SSH::Cluster->new_with_options;

DESCRIPTION

Simple application to execute the same remote command across one or more remote servers. This module does *not* handle errors that are generated from remote commands and currently does not log the STDERR of the remote commands that are executed. Any error handling will need to implementing in the calling code.

NAME

App::SSH::Cluster

ATTRIBUTES

  • command

    command to run on remote servers

  • config_file

    Absolute path to YAML configuration file that defines the listing of servers, users, and identity-files. If no config_file is supplied, the default file .app-clusterssh.yml is assumed in the users home directory.

METHODS

  • run

    Runs the supplied command (--command or -c ) on each remote server. Logging STDOUT to separate files then dumping STDOUT in blocks labelled by the name of the host the STDOUT is from

CONFIGURATION

The follow items are required for *each* server that you wish to run commands on:

  • identity_file

    absolute path to the SSH private key to use to connect

  • user

    name of user to connect to remote server as

  • hostname

    name of remote host

each of these may be defined globally or for each individual server, individual server options take precedence. Global options will be used if any individual options are not listed.

EXAMPLE CONFIGURATIONs

identity_file: "/home/hunter/.ssh/id_rsa"  
servers:
  - hostname: bastion
    user: hunter
    identity_file: "/home/hunter/.ssh/bastion_rsa"
  - hostname: asphodel
    user: hades

or

identity_file: "/home/hunter/.ssh/id_rsa"
user: hunter
servers:                                 
  - hostname: bastion                    
  - hostname: asphodel
  - hostname: localhost

AUTHOR

Hunter McMillen [email protected]

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Hunter McMillen.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

app-ssh-cluster's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.