Dead simple provisioning tool written in Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmd
examples/shellbot
logger
ops
ssh
.gitignore
LICENSE
Makefile
Readme.md
main.go

Readme.md

Shellbot

Join the chat at https://gitter.im/Around25/shellbot

Shellbot allows the user to connect to any server through ssh and setup a certain infrastructure configuration by running various commands on the remote server or by copying data from the host through SCP.

Installation

Download the appropriate release for your architecture and start using it.

Usage

Copy Command

Using the copy command you can copy a file or directory from the local host to a server and vice versa.

In order to user the command you must first have a configuration file that defines the list of managed servers.

To copy from local host to a server named dev-1 use this command: $> shellbot --config ./shellbot/devops.yaml copy ./hosts.txt dev:/etc/hosts To download from a server use this command: $> shellbot --config ./shellbot/devops.yaml copy dev:/etc/hosts ./hosts.txt

Shell Command Connect to a particular server using ssh use this command: $> shellbot --config ./shellbot/devops.yaml shell dev-1

Setup Command

To execute all tasks for the "dev" environment use this command: $> shellbot --config ./shellbot/devops.yaml setup dev

Check Command -- NOT YET IMPLEMENTED

The check command allows you to see if all servers for an environment are in their correct state.

Contributing

In order to install all dependencies for the project run make deps. To compile and install the shellbot tool run make. In order to execute the tests run make test or make test-coverage in case you want to see the code coverage as well.