0.1.0 • Published 9 years ago

derbados v0.1.0

Weekly downloads
42
License
-
Repository
-
Last release
9 years ago

Derbados

Server management tool for lazy people.

Install

npm install -g derbados

Configure

On OS X: Create a config folder, this can be anywhere node has access to:

$ mkdir /Users/yourname/config

Create global config file:

$ sudo touch /Users/yourname/config/default.json

Edit that file:

$ sudo vim /Users/yourname/config/default.json

Now add your hosts and aliases.

{
	"hosts": {
		"servername" : { "host": "11.11.11.11", "password": "yourpassword", "user": "root", "key": "~/.ssh/id_rsa" },
	},
	"aliases": {
		"test": "echo 'This is a test.'",
		"freemem": "free -m"
	}
}

Finally, Set your node config directory:

$ export NODE_CONFIG_DIR='/Users/ewanvalentine/config'

Now if you run $ derbados -h servername -c test

You should see 'This is a test.'. This has just ran on your remote server!

Other commands

Run a single command across multiple servers with $ derbados -m host_one:host_two -c 'free -m'

You can also stream an ssh connection with $ derbados -s host_name -t sh (-t means shell type, please use either sh for shell or bash for... well bash).

0.1.0

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago