remote_executor 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +14 -9
- data/lib/remote_executor/version.rb +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -6,7 +6,6 @@ A simplistic remote command launcher over SSH conections
|
|
6
6
|
|
7
7
|
The latest stable version is published in rubygems.
|
8
8
|
|
9
|
-
gem source --add http://rubygems.org
|
10
9
|
gem install remote_executor
|
11
10
|
|
12
11
|
== Notes
|
@@ -15,13 +14,16 @@ At the moment the gem have a strong dependency of your local SSH configuration,
|
|
15
14
|
a very simple mechanism for keep safe your private data, but this need a ugly configuration with a fake user name in the connection
|
16
15
|
process. I provide a basic SSH config if your aren´t familiar with this configuration stuff
|
17
16
|
|
18
|
-
|
17
|
+
== Options
|
18
|
+
* config = Valid YAML configuration file
|
19
|
+
* log = File for the log
|
20
|
+
* commands = A list of commands separated by ';'
|
21
|
+
* threaded = [true, false]: Execute the command in batch mode (false) or in parallel (true) in a server of a system
|
22
|
+
|
23
|
+
=== Configuration file example
|
19
24
|
|
20
|
-
An example may be the next. Launch the command 'hostname' over your production farm system named 'myFarm' configured in your home
|
21
|
-
directory into the file ${HOME}/.remoteexecutorrc like this:
|
22
|
-
|
23
25
|
---
|
24
|
-
- :name: '
|
26
|
+
- :name: 'myFarm1'
|
25
27
|
:environment: 'development'
|
26
28
|
:user: 'admin'
|
27
29
|
:hosts:
|
@@ -29,7 +31,7 @@ directory into the file ${HOME}/.remoteexecutorrc like this:
|
|
29
31
|
- 'myHost2'
|
30
32
|
- 'myHost3'
|
31
33
|
- 'myHost4'
|
32
|
-
- :name: '
|
34
|
+
- :name: 'myFarm2'
|
33
35
|
:environment: 'production'
|
34
36
|
:user: 'admin'
|
35
37
|
:hosts:
|
@@ -57,12 +59,15 @@ you need this minimal SSH configuration (${HOME}/.ssh/config) for the example
|
|
57
59
|
|
58
60
|
with this line:
|
59
61
|
|
60
|
-
remote_executor --
|
62
|
+
remote_executor --config=MyFarmsConfigurationFile.yml \
|
63
|
+
--threaded=true \
|
64
|
+
--log=/tmp/MyFarmResults.log \
|
65
|
+
--system=myFarm1 \
|
66
|
+
--commands='hostname;cat /etc/hosts;grep foo /etc/passwd'
|
61
67
|
|
62
68
|
|
63
69
|
== TODO
|
64
70
|
|
65
|
-
* Document all this stuff in english... I promise
|
66
71
|
* Take decisions about user by hosts or user by farm
|
67
72
|
* Pullrequests are welcome... of course
|
68
73
|
|