auser-poolparty 0.2.36 → 0.2.37
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/Manifest.txt +1 -0
- data/lib/poolparty/base_packages/haproxy.rb +1 -1
- data/lib/poolparty/base_packages/poolparty.rb +6 -3
- data/lib/poolparty/helpers/provisioner_base.rb +1 -1
- data/lib/poolparty/helpers/provisioners/master.rb +1 -2
- data/lib/poolparty/helpers/provisioners/slave.rb +3 -2
- data/lib/poolparty/net/remote_instance.rb +1 -1
- data/lib/poolparty/net/remoter.rb +3 -2
- data/lib/poolparty/templates/puppet.conf +0 -0
- data/lib/poolparty/templates/puppetrerun +5 -0
- data/lib/poolparty/version.rb +1 -1
- data/poolparty.gemspec +2 -1
- data/website/index.html +1 -1
- metadata +2 -1
data/Manifest.txt
CHANGED
@@ -236,6 +236,7 @@ lib/poolparty/templates/namespaceauth.conf
|
|
236
236
|
lib/poolparty/templates/poolparty.monitor
|
237
237
|
lib/poolparty/templates/puppet.conf
|
238
238
|
lib/poolparty/templates/puppetcleaner
|
239
|
+
lib/poolparty/templates/puppetrerun
|
239
240
|
lib/poolparty/version.rb
|
240
241
|
lib/poolpartycl.rb
|
241
242
|
poolparty.gemspec
|
@@ -29,11 +29,10 @@ module PoolParty
|
|
29
29
|
has_gempackage(:name => "ruby2ruby", :download_url => "http://rubyforge.org/frs/download.php/45587/ruby2ruby-1.2.0.gem", :requires => get_gempackage("ParseTree"))
|
30
30
|
|
31
31
|
has_gempackage(:name => "activesupport", :download_url => "http://rubyforge.org/frs/download.php/45627/activesupport-2.1.2.gem")
|
32
|
-
|
33
|
-
has_gempackage(:name => "aska", :download_url => "http://github.com/auser/aska/tree/master%2Fpkg%2Faska-latest.gem?raw=true", :requires => get_gempackage("ruby2ruby"))
|
32
|
+
|
34
33
|
has_gempackage(:name => "RubyInline", :download_url => "http://rubyforge.org/frs/download.php/45683/RubyInline-3.8.1.gem")
|
35
34
|
|
36
|
-
has_gempackage(:name => "poolparty", :download_url => "http://github.com/auser/poolparty/tree/master%2Fpkg%2Fpoolparty-latest.gem?raw=true", :requires => [get_gempackage("ruby2ruby"), get_gempackage("RubyInline"), get_gempackage("
|
35
|
+
has_gempackage(:name => "poolparty", :download_url => "http://github.com/auser/poolparty/tree/master%2Fpkg%2Fpoolparty-latest.gem?raw=true", :requires => [get_gempackage("ruby2ruby"), get_gempackage("RubyInline"), get_gempackage("ParseTree")])
|
37
36
|
|
38
37
|
has_exec(:name => "build_messenger", :command => ". /etc/profile && server-build-messenger", :requires => get_gempackage("poolparty"))
|
39
38
|
has_exec(:name => "start_node", :command => ". /etc/profile && server-start-node", :requires => get_exec("build_messenger"))
|
@@ -62,6 +61,10 @@ module PoolParty
|
|
62
61
|
mode 744
|
63
62
|
template File.join(File.dirname(__FILE__), "..", "templates/puppetcleaner")
|
64
63
|
end
|
64
|
+
has_remotefile(:name => "/usr/bin/puppetrerun") do
|
65
|
+
mode 744
|
66
|
+
template File.join(File.dirname(__FILE__), "..", "templates/puppetrerun")
|
67
|
+
end
|
65
68
|
end
|
66
69
|
|
67
70
|
# has_host(:name => "puppet", :ip => (self.respond_to?(:master) ? self : parent).master.ip)
|
@@ -139,7 +139,7 @@ if [ -f '/usr/bin/puppetcleaner' ]; then /usr/bin/env puppetcleaner; fi
|
|
139
139
|
@cloud.run_command_on(command, @cloud.master) unless testing
|
140
140
|
end
|
141
141
|
def process_reconfigure!(testing=false)
|
142
|
-
@cloud.run_command_on(
|
142
|
+
@cloud.run_command_on(RemoteInstance.puppet_runner_command, @instance) unless testing
|
143
143
|
end
|
144
144
|
def setup_runner(force=false)
|
145
145
|
@cloud.prepare_to_configuration
|
@@ -132,11 +132,10 @@ wget http://rubyforge.org/frs/download.php/43954/rake-0.8.3.gem -O rake.gem 2>&1
|
|
132
132
|
wget http://rubyforge.org/frs/download.php/45589/sexp_processor-3.0.0.gem -O sexp_processor.gem 2>&1
|
133
133
|
wget http://github.com/auser/poolparty/tree/master%2Fpkg%2Fpoolparty-latest.gem?raw=true -O poolparty-latest.gem 2>&1
|
134
134
|
wget http://rubyforge.org/frs/download.php/43666/amazon-ec2-0.3.1.gem -O amazon-ec2.gem 2>&1
|
135
|
-
wget http://github.com/auser/aska/tree/master%2Fpkg%2Faska-latest.gem?raw=true -O aska.gem 2>&1
|
136
135
|
|
137
136
|
#{
|
138
137
|
%w(rake lockfile rubyforge hoe zentest sexp_processor flexmock logging activesupport
|
139
|
-
RubyInline ParseTree ruby2ruby xml-simple
|
138
|
+
RubyInline ParseTree ruby2ruby xml-simple poolparty-latest amazon-ec2).map do |dep|
|
140
139
|
"gem install --ignore-dependencies -y --no-ri --no-rdoc #{dep}.gem"
|
141
140
|
end.join("\n")
|
142
141
|
}
|
@@ -33,8 +33,9 @@ module PoolParty
|
|
33
33
|
# /etc/init.d/puppetmasterd stop
|
34
34
|
# puppetd --listen --fqdn #{@instance.name}
|
35
35
|
def start_puppet
|
36
|
-
<<-EOS
|
37
|
-
/
|
36
|
+
<<-EOS
|
37
|
+
rm -rf /etc/puppet/ssl
|
38
|
+
/usr/bin/puppetrerun
|
38
39
|
EOS
|
39
40
|
end
|
40
41
|
|
@@ -126,8 +126,7 @@ module PoolParty
|
|
126
126
|
# A convenience method for waiting until there are no more
|
127
127
|
# pending instances and then running the block
|
128
128
|
def when_no_pending_instances(&block)
|
129
|
-
reset!
|
130
|
-
vputs "Waiting for there to be no pending instances..."
|
129
|
+
reset!
|
131
130
|
if list_of_pending_instances.size == 0
|
132
131
|
block.call if block
|
133
132
|
else
|
@@ -155,8 +154,10 @@ module PoolParty
|
|
155
154
|
vputs "Requesting to launch new instance"
|
156
155
|
request_launch_new_instances(1) if list_of_pending_instances.size.zero? && can_start_a_new_instance? && !is_master_running?
|
157
156
|
|
157
|
+
vputs "Waiting for there to be no pending instances..."
|
158
158
|
when_no_pending_instances do
|
159
159
|
wait "20.seconds"
|
160
|
+
vputs ""
|
160
161
|
vputs "Provisioning master..."
|
161
162
|
hide_output { Provisioner.provision_master(self, testing) }
|
162
163
|
PoolParty::Provisioner.reconfigure_master(self, !testing)
|
File without changes
|
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.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ari Lerner
|
@@ -336,6 +336,7 @@ files:
|
|
336
336
|
- lib/poolparty/templates/poolparty.monitor
|
337
337
|
- lib/poolparty/templates/puppet.conf
|
338
338
|
- lib/poolparty/templates/puppetcleaner
|
339
|
+
- lib/poolparty/templates/puppetrerun
|
339
340
|
- lib/poolparty/version.rb
|
340
341
|
- lib/poolpartycl.rb
|
341
342
|
- poolparty.gemspec
|
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.37</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.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ari Lerner
|
@@ -336,6 +336,7 @@ files:
|
|
336
336
|
- lib/poolparty/templates/poolparty.monitor
|
337
337
|
- lib/poolparty/templates/puppet.conf
|
338
338
|
- lib/poolparty/templates/puppetcleaner
|
339
|
+
- lib/poolparty/templates/puppetrerun
|
339
340
|
- lib/poolparty/version.rb
|
340
341
|
- lib/poolpartycl.rb
|
341
342
|
- poolparty.gemspec
|