0.1.0 • Published 10 years ago

derbados v0.1.0

Weekly downloads
42
License
-
Repository
-
Last release
10 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

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago