auser-poolparty 0.2.91 → 0.2.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/PostInstall.txt +1 -1
- data/lib/poolparty/base_packages/poolparty.rb +5 -22
- data/lib/poolparty/provisioners/capistrano/recipies/master.rb +3 -6
- data/lib/poolparty/provisioners/provisioner_base.rb +1 -1
- data/lib/poolparty/spec/core/string.rb +6 -4
- data/lib/poolparty/spec/matchers/a_spec_extensions_base.rb +1 -1
- data/lib/poolparty/version.rb +1 -1
- data/poolparty.gemspec +2 -2
- data/website/index.html +1 -1
- metadata +2 -2
data/PostInstall.txt
CHANGED
|
@@ -63,6 +63,7 @@ module PoolParty
|
|
|
63
63
|
requires get_gempackage("poolparty")
|
|
64
64
|
command "/usr/bin/puppetrunner"
|
|
65
65
|
end
|
|
66
|
+
has_exec(:command => "/usr/bin/puppetrunner")
|
|
66
67
|
has_user(:name => user)
|
|
67
68
|
# end
|
|
68
69
|
|
|
@@ -90,30 +91,12 @@ module PoolParty
|
|
|
90
91
|
|
|
91
92
|
execute_on_master do
|
|
92
93
|
has_exec(:name => "update_hosts", :command => ". /etc/profile && server-update-hosts -n #{cloud.name}")
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
# requires get_gempackage("poolparty")
|
|
96
|
-
# command(PoolParty::Remote::RemoteInstance.puppet_runner_command)
|
|
97
|
-
# end
|
|
98
|
-
has_cron(:name => "Load handler", :user => Base.user, :minute => "*/4") do
|
|
99
|
-
requires get_gempackage("poolparty")
|
|
100
|
-
command(". /etc/profile && cloud-handle-load -n #{cloud.name}")
|
|
101
|
-
end
|
|
102
|
-
has_cron(:name => "provisioning ensurer", :user => Base.user, :minute => "*/2") do
|
|
103
|
-
requires get_gempackage("poolparty")
|
|
104
|
-
command ". /etc/profile && cloud-ensure-provisioning -n #{cloud.name}"
|
|
105
|
-
end
|
|
106
|
-
# has_runit_service("client_server", "pm_client", File.join(File.dirname(__FILE__), "..", "templates/messenger/client/"))
|
|
107
|
-
# has_runit_service("master_server", "pm_master", File.join(File.dirname(__FILE__), "..", "templates/messenger/master/"))
|
|
108
|
-
# TODO: Update this so it only runs when needed
|
|
109
|
-
# has_customservice(:name => "start master server", :pattern => "/pm_master/", :bin => ". /etc/profile && server-start-master")
|
|
110
|
-
# has_customservice(:name => "start client server", :pattern => "/client_service/", :bin => ". /etc/profile && server-start-client")
|
|
94
|
+
has_exec(:command => ". /etc/profile && cloud-handle-load -n #{cloud.name}")
|
|
95
|
+
has_exec(:command => ". /etc/profile && cloud-ensure-provisioning -n #{cloud.name}")
|
|
111
96
|
has_exec(:name => "start master messenger", :command => ". /etc/profile && server-start-master") #, :ifnot => "/bin/ps aux | /bin/grep -q pm_master"
|
|
112
97
|
has_exec(:name => "start client server", :command => ". /etc/profile && server-start-client") #, :ifnot => "/bin/ps aux | /bin/grep -q client_server"
|
|
113
|
-
|
|
114
|
-
has_cron(
|
|
115
|
-
|
|
116
|
-
has_cron(:name => "ensure puppetmaster is running", :command => ". /etc/profile && puppetmasterd --verbose", :hour => "0")
|
|
98
|
+
has_exec(:command => ". /etc/profile && cloud-maintain -n #{cloud.name}")
|
|
99
|
+
has_cron(:name => "ensure puppetmaster is running", :command => ". /etc/profile && puppetmasterd --verbose", :hour => "1")
|
|
117
100
|
|
|
118
101
|
end
|
|
119
102
|
# has_host(:name => "puppet", :ip => (self.respond_to?(:master) ? self : parent).master.ip)
|
|
@@ -43,7 +43,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
43
43
|
def download_base_gems
|
|
44
44
|
run(returning(Array.new) do |arr|
|
|
45
45
|
base_gems.each do |name, url|
|
|
46
|
-
arr << "wget #{url} -O #{Base.remote_storage_path}/#{name}.gem 2>&1"
|
|
46
|
+
arr << "wget #{url} -O #{Base.remote_storage_path}/#{name}.gem 2>&1; echo 'downloaded #{name}'" if url
|
|
47
47
|
end
|
|
48
48
|
end.join(" && "))
|
|
49
49
|
end
|
|
@@ -51,11 +51,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
51
51
|
def install_base_gems
|
|
52
52
|
run(returning(Array.new) do |arr|
|
|
53
53
|
base_gems.each do |name, url|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
else
|
|
57
|
-
arr << "/usr/bin/gem install --ignore-dependencies --no-ri --no-rdoc #{Base.remote_storage_path}/#{name}.gem"
|
|
58
|
-
end
|
|
54
|
+
str = url.empty? ? "#{name}" : "#{Base.remote_storage_path}/#{name}.gem"
|
|
55
|
+
arr << "/usr/bin/gem install --ignore-dependencies --no-ri --no-rdoc #{str}"
|
|
59
56
|
end
|
|
60
57
|
end.join(" && "))
|
|
61
58
|
end
|
|
@@ -168,7 +168,7 @@ module PoolParty
|
|
|
168
168
|
"net-scp" => "http://rubyforge.org/frs/download.php/37664/net-scp-1.0.1.gem",
|
|
169
169
|
"net-ssh-gateway" => "http://rubyforge.org/frs/download.php/36389/net-ssh-gateway-1.0.0.gem",
|
|
170
170
|
:highline => "http://rubyforge.org/frs/download.php/46328/highline-1.5.0.gem",
|
|
171
|
-
:capistrano => "
|
|
171
|
+
:capistrano => "",
|
|
172
172
|
:poolparty => "http://github.com/auser/poolparty/tree/master%2Fpkg%2Fpoolparty.gem?raw=true",
|
|
173
173
|
"ec2" => "http://rubyforge.org/frs/download.php/43666/amazon-ec2-0.3.1.gem"
|
|
174
174
|
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
class String
|
|
2
2
|
def grab_entry_for(type, name)
|
|
3
|
-
begin
|
|
4
|
-
|
|
5
|
-
matches = self.match(/#{type}(.*)\{(.*)"#{name}":(.*)(#{allowed})*\}/)[0]
|
|
3
|
+
begin
|
|
4
|
+
matches = self.match(/#{type}(.*)\{(.*)"#{name}":(.*)(#{_allowed})*\}/)[0]
|
|
6
5
|
rescue
|
|
7
6
|
""
|
|
8
7
|
end
|
|
9
8
|
end
|
|
9
|
+
def _allowed
|
|
10
|
+
/[ \$\._\*\-\[\]\n\t\\\/&,\(\)"',|:=\>\<A-Za-z0-9]/
|
|
11
|
+
end
|
|
10
12
|
def _grab_key_value_for(type, name, key)
|
|
11
13
|
grab_entry_for(type, name).scan(/#{key}[ =>]*(.*)[,?]?$/).flatten.first rescue ""
|
|
12
14
|
end
|
|
13
15
|
def grab_key_value_for(ty, name, key)
|
|
14
|
-
_grab_key_value_for(ty,name,key).gsub(/,/, '')
|
|
16
|
+
_grab_key_value_for(ty,name,key).gsub(/,/, '') rescue ""
|
|
15
17
|
end
|
|
16
18
|
end
|
data/lib/poolparty/version.rb
CHANGED
data/poolparty.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: poolparty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.92
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ari Lerner
|
|
@@ -535,7 +535,7 @@ files:
|
|
|
535
535
|
has_rdoc: true
|
|
536
536
|
homepage: http://poolparty.rubyforge.org
|
|
537
537
|
post_install_message: |-
|
|
538
|
-
Get ready to jump in the pool, you just installed PoolParty! (Updated at
|
|
538
|
+
Get ready to jump in the pool, you just installed PoolParty! (Updated at 18:36 12/21/08)
|
|
539
539
|
|
|
540
540
|
To get started, run the generator:
|
|
541
541
|
|
data/website/index.html
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<h1>PoolParty</h1>
|
|
35
35
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/poolparty"; return false'>
|
|
36
36
|
<p>Get Version</p>
|
|
37
|
-
<a href="http://rubyforge.org/projects/poolparty" class="numbers">0.2.
|
|
37
|
+
<a href="http://rubyforge.org/projects/poolparty" class="numbers">0.2.92</a>
|
|
38
38
|
</div>
|
|
39
39
|
<h1>‘Easy cloud computing’</h1>
|
|
40
40
|
<h2>What</h2>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: auser-poolparty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.92
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ari Lerner
|
|
@@ -535,7 +535,7 @@ files:
|
|
|
535
535
|
has_rdoc: true
|
|
536
536
|
homepage: http://poolparty.rubyforge.org
|
|
537
537
|
post_install_message: |-
|
|
538
|
-
Get ready to jump in the pool, you just installed PoolParty! (Updated at
|
|
538
|
+
Get ready to jump in the pool, you just installed PoolParty! (Updated at 18:36 12/21/08)
|
|
539
539
|
|
|
540
540
|
To get started, run the generator:
|
|
541
541
|
|