auser-poolparty 0.2.36 → 0.2.37

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -17,7 +17,7 @@ module PoolParty
17
17
  end
18
18
 
19
19
  # Service is required
20
- has_service(:name => "haproxy")
20
+ has_service(:name => "haproxy", :ensures => "running")
21
21
 
22
22
  # Tempalte variables
23
23
  variable(:name => "name_haproxy", :value => "#{cloud.name}")
@@ -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("aska"), get_gempackage("ParseTree")])
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("puppetd --test 2>&1 &", @instance) unless testing
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 aska poolparty-latest amazon-ec2).map do |dep|
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
- /usr/sbin/puppetd --onetime --no-daemonize --logdest syslog --server master 2>&1
36
+ <<-EOS
37
+ rm -rf /etc/puppet/ssl
38
+ /usr/bin/puppetrerun
38
39
  EOS
39
40
  end
40
41
 
@@ -69,7 +69,7 @@ module PoolParty
69
69
  end
70
70
  # Commands for the servers
71
71
  def self.puppet_runner_command
72
- ". /etc/profile && /usr/sbin/puppetd --onetime --no-daemonize --logdest syslog --server master 2>&1"
72
+ "/usr/bin/puppetrerun 2>&1 > /dev/null"
73
73
  end
74
74
  end
75
75
 
@@ -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
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+
3
+ . /etc/profile
4
+ rm -rf /etc/puppet/ssl
5
+ /usr/sbin/puppetd --onetime --no-daemonize --logdest syslog --server master 2>&1 > /dev/null
@@ -2,7 +2,7 @@ module PoolParty
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 36
5
+ TINY = 37
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -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.36
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
@@ -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.36</a>
37
+ <a href="http://rubyforge.org/projects/poolparty" class="numbers">0.2.37</a>
38
38
  </div>
39
39
  <h1>&#8216;Easy cloud computing&#8217;</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.36
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