forked from emiltin/healing
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better reporting and processing of healing resuls, based on text tabl…
…es. numerous small improvements.
- Loading branch information
Showing
41 changed files
with
744 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'rubygems' | ||
require 'trollop' | ||
|
||
parser = nil | ||
opts = Trollop::options do | ||
opt :ideal, "ideal file", :type => :string, :default => 'ideal.rb' | ||
parser = self | ||
end | ||
|
||
h = Healing::App::Admin.new | ||
h.load_ideal opts[:ideal] | ||
h.diagnose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require File.dirname(__FILE__)+'/../lib/healing' | ||
|
||
#FIXME this is a workaround, since /etc/profile is not loaded when we go through Net::SSH, for some reason, | ||
#not are any of the other bash config files..... | ||
ENV['PATH'] = "#{ENV['PATH']}:/var/lib/gems/1.8/bin" | ||
|
||
|
||
h = Healing::App::Worker.new | ||
h.load_ideal 'ideal.rb' | ||
h.diagnose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'lib/healing' | ||
require 'lib/app/admin' | ||
require 'rubygems' | ||
require 'trollop' | ||
|
||
parser = nil | ||
opts = Trollop::options do | ||
opt :ideal, "ideal file", :type => :string, :default => 'ideal.rb' | ||
parser = self | ||
end | ||
|
||
h = Healing::App::Admin.new | ||
h.prune | ||
h.load_ideal opts[:ideal] | ||
h.prune |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'lib/healing' | ||
require 'lib/app/admin' | ||
require 'rubygems' | ||
require 'trollop' | ||
|
||
parser = nil | ||
opts = Trollop::options do | ||
opt :ideal, "ideal file", :type => :string, :default => 'ideal.rb' | ||
parser = self | ||
end | ||
|
||
h = Healing::App::Admin.new | ||
h.upload | ||
h.load_ideal opts[:ideal] | ||
h.upload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'lib/healing' | ||
require 'lib/app/admin' | ||
require 'rubygems' | ||
require 'trollop' | ||
|
||
parser = nil | ||
opts = Trollop::options do | ||
opt :ideal, "ideal file", :type => :string, :default => 'ideal.rb' | ||
parser = self | ||
end | ||
|
||
h = Healing::App::Admin.new | ||
h.load_ideal opts[:ideal] | ||
h.volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
cloud :raking do | ||
uuid '68u2hcjcdjj3' | ||
key '/Users/emiltin/.ec2/testpair' | ||
instances 1 | ||
|
||
mysql_ebs 'vol-4943a020' | ||
rails_app '/poolparty_example', :repo => 'git://github.com/emiltin/poolparty_example.git', :environment => :production | ||
# rubygem 'rake' | ||
rake "stats", :base => '/poolparty_example'#, :flags => "RAILS_ENV=production" | ||
rake "log:clear", :base => '/poolparty_example' | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
|
||
cloud :raking do | ||
uuid '68u2hcjcdjj3' | ||
cloud :dev do | ||
uuid 'hjujj3j' | ||
key '/Users/emiltin/.ec2/testpair' | ||
instances 1 | ||
|
||
# mysql_ebs 'vol-4943a020' | ||
# rails_app '/poolparty_example', :repo => 'git://github.com/emiltin/poolparty_example.git', :environment => :production | ||
# rubygem 'rake' | ||
rake "stats", :base => '/poolparty_example' | ||
rake "log:clear", :base => '/poolparty_example' | ||
dir '/xx' | ||
|
||
cloud :app do | ||
instances 10 | ||
uuid '3jfjfkj3kr' | ||
dir '/xx/app' | ||
end | ||
|
||
cloud :db do | ||
uuid 'dlfkjl3rddd3333' | ||
instances 1 | ||
dir '/xx/db' | ||
end | ||
|
||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,10 @@ class Provisioner | |
def initialize root | ||
@root = root | ||
end | ||
|
||
|
||
def diagnose | ||
end | ||
|
||
def heal | ||
if arm | ||
launch | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.