right_chimp 1.1.3 → 2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/CHANGES +4 -0
- data/Gemfile +0 -1
- data/Gemfile.lock +2 -22
- data/README +25 -47
- data/chimp.gemspec +4 -4
- data/lib/right_chimp/Chimp.rb +498 -317
- data/lib/right_chimp/Log.rb +7 -4
- data/lib/right_chimp/daemon/ChimpDaemon.rb +75 -10
- data/lib/right_chimp/daemon/ChimpDaemonClient.rb +16 -8
- data/lib/right_chimp/exec/ExecReport.rb +14 -20
- data/lib/right_chimp/exec/ExecRightScript.rb +7 -6
- data/lib/right_chimp/exec/ExecSSH.rb +4 -9
- data/lib/right_chimp/exec/Executor.rb +7 -5
- data/lib/right_chimp/objects/ChimpObjects.rb +393 -0
- data/lib/right_chimp/queue/ChimpQueue.rb +32 -32
- data/lib/right_chimp/queue/ExecutionGroup.rb +3 -8
- data/lib/right_chimp/queue/QueueWorker.rb +0 -4
- data/lib/right_chimp/templates/all_jobs.erb +4 -4
- data/lib/right_chimp/version.rb +1 -1
- data/lib/right_chimp.rb +11 -2
- metadata +9 -38
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pkg/*
|
data/CHANGES
CHANGED
@@ -134,3 +134,7 @@ Version 1.1.2
|
|
134
134
|
Version 1.1.3
|
135
135
|
-------------
|
136
136
|
* Bugfix: Fix issue where queued/held jobs move into a waiting state and do nothing
|
137
|
+
|
138
|
+
Version 2.0
|
139
|
+
-----------
|
140
|
+
* Feature: Deprecated all Rightscale API1.0 calls in favor of Rightscale API1.5 and API1.6 calls.
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,38 +1,18 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
right_chimp (
|
4
|
+
right_chimp (2.0)
|
5
5
|
nokogiri (~> 1.5.9)
|
6
6
|
progressbar (~> 0.11.0)
|
7
7
|
rake (~> 0.9.2.2)
|
8
|
-
rest-client (~> 1.6.7)
|
9
|
-
rest_connection (~> 1.0.10)
|
10
8
|
|
11
9
|
GEM
|
12
10
|
remote: https://rubygems.org/
|
13
11
|
specs:
|
14
|
-
activesupport (3.2.15)
|
15
|
-
i18n (~> 0.6, >= 0.6.4)
|
16
|
-
multi_json (~> 1.0)
|
17
12
|
diff-lcs (1.1.3)
|
18
|
-
|
19
|
-
i18n (0.6.5)
|
20
|
-
json (1.8.1)
|
21
|
-
mime-types (2.0)
|
22
|
-
multi_json (1.8.2)
|
23
|
-
net-ssh (2.7.0)
|
24
|
-
nokogiri (1.5.10)
|
13
|
+
nokogiri (1.5.11)
|
25
14
|
progressbar (0.11.0)
|
26
15
|
rake (0.9.2.2)
|
27
|
-
rest-client (1.6.7)
|
28
|
-
mime-types (>= 1.16)
|
29
|
-
rest_connection (1.0.11)
|
30
|
-
activesupport (< 4.0.0)
|
31
|
-
highline
|
32
|
-
json
|
33
|
-
net-ssh
|
34
|
-
nokogiri (< 1.6.0)
|
35
|
-
rest-client
|
36
16
|
rspec (2.6.0)
|
37
17
|
rspec-core (~> 2.6.0)
|
38
18
|
rspec-expectations (~> 2.6.0)
|
data/README
CHANGED
@@ -26,54 +26,32 @@ REPORTING
|
|
26
26
|
---------
|
27
27
|
|
28
28
|
Via the --report command line option it's possible to generate a CSV
|
29
|
-
report
|
30
|
-
|
31
|
-
|
32
|
-
chimp --report="nickname,ip-address"
|
33
|
-
|
34
|
-
Would include both the server nickname and ip address to the report:
|
35
|
-
|
36
|
-
server1-1.rightscale.com,192.168.0.1
|
37
|
-
server1-2.rightscale.com,192.168.0.2
|
38
|
-
server1-3.rightscale.com,192.168.0.3
|
39
|
-
server1-4.rightscale.com,192.168.0.4
|
40
|
-
|
41
|
-
Any field present
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
aws-platform Linux/Unix
|
48
|
-
cloud_id
|
49
|
-
created_at
|
50
|
-
current_instance_href
|
51
|
-
deployment_href
|
52
|
-
dns-name ec2-50-17-195-218.compute-1.amazonaws.com
|
53
|
-
ec2-availability-zone us-east-1a
|
54
|
-
ec2-instance-type c1.medium
|
55
|
-
ec2-security-groups-href
|
56
|
-
ec2-ssh-key-href
|
29
|
+
report. Multiple fields to include in a report can be specified in a comma
|
30
|
+
delimited list:
|
31
|
+
|
32
|
+
chimp --report="nickname,ip-address,tag=myservice:version" --array="MyAppServers"
|
33
|
+
|
34
|
+
Would include both the server nickname and ip address to the report as well as the specified tag:
|
35
|
+
|
36
|
+
server1-1.rightscale.com,192.168.0.1,myservice:version=production
|
37
|
+
server1-2.rightscale.com,192.168.0.2,myservice:version=production
|
38
|
+
server1-3.rightscale.com,192.168.0.3,myservice:version=staging
|
39
|
+
server1-4.rightscale.com,192.168.0.4,myservice:version=info
|
40
|
+
|
41
|
+
Any field present in the following list can be queried:
|
42
|
+
|
43
|
+
Field
|
44
|
+
-----------------------------------
|
45
|
+
ip-address
|
46
|
+
name
|
57
47
|
href
|
58
|
-
ip-address
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
server_type ec2
|
66
|
-
state operational
|
67
|
-
updated_at 2011/10/18 21:53:56 +0000
|
68
|
-
|
69
|
-
Additionally you can report on instance tags:
|
70
|
-
|
71
|
-
chimp --report="nickname,tag=service:myservice"
|
72
|
-
|
73
|
-
server1-1.rightscale.com,service:id=1
|
74
|
-
server1-2.rightscale.com,service:id=2
|
75
|
-
server1-3.rightscale.com,service:id=3
|
76
|
-
server1-4.rightscale.com,service:id=4
|
48
|
+
private-ip-address
|
49
|
+
resource_uid
|
50
|
+
ec2-instance-type
|
51
|
+
datacenter
|
52
|
+
dns-name
|
53
|
+
locked
|
54
|
+
tag=mytag
|
77
55
|
|
78
56
|
OBLIGATORY MAINTENANCE STRING
|
79
57
|
-----------------------------
|
data/chimp.gemspec
CHANGED
@@ -4,9 +4,11 @@ require "right_chimp/version"
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "right_chimp"
|
7
|
+
s.license = 'MIT'
|
8
|
+
|
7
9
|
s.version = Chimp::VERSION
|
8
|
-
s.authors = ["
|
9
|
-
s.email = ["
|
10
|
+
s.authors = ["RightScale Operations"]
|
11
|
+
s.email = ["ops@rightscale.com"]
|
10
12
|
s.homepage = "https://github.com/rightscale/right_chimp"
|
11
13
|
s.summary = %q{RightScale platform command-line tool}
|
12
14
|
s.description = %q{The Chimp is a tool for managing servers using the RightScale platform.}
|
@@ -18,8 +20,6 @@ Gem::Specification.new do |s|
|
|
18
20
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
21
|
s.require_paths = ["lib"]
|
20
22
|
|
21
|
-
s.add_dependency "rest_connection", "~> 1.0.10"
|
22
|
-
s.add_dependency "rest-client", "~> 1.6.7"
|
23
23
|
s.add_dependency "rake", "~> 0.9.2.2"
|
24
24
|
s.add_dependency "nokogiri", "~> 1.5.9"
|
25
25
|
s.add_dependency "progressbar", "~> 0.11.0"
|