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 CHANGED
@@ -1,4 +1,4 @@
1
- Get ready to jump in the pool, you just installed PoolParty! (Updated at 00:13 12/21/08)
1
+ Get ready to jump in the pool, you just installed PoolParty! (Updated at 18:36 12/21/08)
2
2
 
3
3
  To get started, run the generator:
4
4
 
@@ -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
- # has_cron(:name => "master puppetd runner", :user => Base.user, :minute => "*/15") do
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({:name => "maintain script", :command => ". /etc/profile && cloud-maintain -n #{cloud.name}", :minute => "*/3", :requires => [get_gempackage("poolparty"), get_cron("puppetd runner"), get_cron("Load handler"), get_service("haproxy")]})
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
- if url.empty?
55
- arr << "/usr/bin/gem install --ignore-dependencies --no-ri --no-rdoc #{name}"
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 => "http://rubyforge.org/frs/download.php/48031/capistrano-2.5.3.gem",
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
- allowed = /[ \$\._\-\[\]\n\t\\\/&,\(\)"',|:=\>\<0-9a-zA-Z]/
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
@@ -18,7 +18,7 @@ module Spec
18
18
  "file"
19
19
  end
20
20
  def is_valid_resource?
21
- grab_entry.split(/\n/).select {|l| l.match(/(.*)=>(\W+),$/) }.empty?
21
+ grab_entry.split(/\n/).select {|l| nil unless l.match(/(.*)=>([\n\t ]*),$/) }.empty?
22
22
  end
23
23
  end
24
24
  end
@@ -2,7 +2,7 @@ module PoolParty
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 91
5
+ TINY = 92
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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.91
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 00:13 12/21/08)
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.91</a>
37
+ <a href="http://rubyforge.org/projects/poolparty" class="numbers">0.2.92</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.91
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 00:13 12/21/08)
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