lib/poolparty/base_packages/poolparty.rb in auser-poolparty-0.2.39 vs lib/poolparty/base_packages/poolparty.rb in auser-poolparty-0.2.40
- old
+ new
@@ -10,10 +10,11 @@
end
has_package(:name => "erlang")
has_package(:name => "erlang-dev")
has_package(:name => "erlang-src")
+ # has_package(:name => "yaws")
has_package(:name => "rubygems") do |g|
# These should be installed automagically by poolparty, but just in case
# TODO: Fix the requires method with a helper
g.has_gempackage(:name => "flexmock", :download_url => "http://rubyforge.org/frs/download.php/42580/flexmock-0.8.3.gem")
@@ -22,14 +23,13 @@
g.has_gempackage(:name => "rubyforge", :download_url => "http://rubyforge.org/frs/download.php/45546/rubyforge-1.0.1.gem")
g.has_gempackage(:name => "hoe", :download_url => "http://rubyforge.org/frs/download.php/45685/hoe-1.8.2.gem", :version => "1.8", :requires => get_gempackage("rubyforge"))
g.has_gempackage(:name => "ZenTest", :download_url => "http://rubyforge.org/frs/download.php/45581/ZenTest-3.11.0.gem", :requires => [get_gempackage("hoe"), get_gempackage("rubyforge")])
- g.has_gempackage(:name => "rake", :download_url => "http://rubyforge.org/frs/download.php/43954/rake-0.8.3.gem")
- g.has_gempackage(:name => "xml-simple", :download_url => "http://rubyforge.org/frs/download.php/18366/xml-simple-1.0.11.gem") do |x|
- x.has_gempackage(:name => "grempe-amazon-ec2", :download_url => "http://rubyforge.org/frs/download.php/43666/amazon-ec2-0.3.1.gem")
- end
+ has_gempackage(:name => "rake", :download_url => "http://rubyforge.org/frs/download.php/43954/rake-0.8.3.gem")
+ has_gempackage(:name => "xml-simple", :download_url => "http://rubyforge.org/frs/download.php/18366/xml-simple-1.0.11.gem")
+ has_gempackage(:name => "grempe-amazon-ec2", :download_url => "http://rubyforge.org/frs/download.php/43666/amazon-ec2-0.3.1.gem", :requires => get_gempackage("xml-simple"))
has_gempackage(:name => "sexp_processor", :download_url => "http://rubyforge.org/frs/download.php/45589/sexp_processor-3.0.0.gem")
has_gempackage(:name => "ParseTree", :download_url => "http://rubyforge.org/frs/download.php/45600/ParseTree-3.0.1.gem", :requires => [get_gempackage("sexp_processor"), get_gempackage("ZenTest")])
has_gempackage(:name => "ruby2ruby", :download_url => "http://rubyforge.org/frs/download.php/45587/ruby2ruby-1.2.0.gem", :requires => get_gempackage("ParseTree"))
@@ -43,14 +43,22 @@
has_exec(:name => "build_messenger", :command => ". /etc/profile && server-build-messenger", :requires => get_gempackage("poolparty-latest"), :onlyif => "ps aux | grep beam | grep node")
has_exec(:name => "start_node", :command => ". /etc/profile && server-start-node", :requires => get_exec("build_messenger"), :onlyif => "ps aux | grep beam | grep node")
end
+ # Cloud panel setup
+
+ has_directory(:name => "/var/www/cloudpanel")
+
+ # has_file(:name => "/etc/yaws/conf.d/localhost.conf") do
+ # template File.join(File.dirname(__FILE__), "..", "templates/yaws.conf")
+ # end
+
# Custom run puppet to minimize footprint
# TODO: Update the offsetted times
execute_on_master do
- has_cron(:name => "puppetd runner", :user => Base.user, :minute => "*/5") do
+ has_cron(:name => "puppetd runner", :user => Base.user, :minute => "*/15") do
command(PoolParty::Remote::RemoteInstance.puppet_master_rerun_command)
end
end
execute_on_node do
has_cron(:name => "puppetd runner", :user => Base.user, :minute => "*/5") do
@@ -60,10 +68,10 @@
# These are all requirements on the master
execute_on_master do
has_cron({:name => "maintain script", :command => ". /etc/profile && which cloud-maintain | /bin/sh", :minute => "*/3"})
# TODO: Update this so it only runs when needed
- has_exec(:name => "start master messenger", :command => ". /etc/profile && server-start-master", :requires => [get_gempackage("poolparty-latest"), get_exec("build_messenger")], :ifnot => "ps aux | grep beam | grep node")
+ has_exec(:name => "start master messenger", :command => ". /etc/profile && server-start-master", :requires => [get_gempackage("poolparty-latest"), get_exec("build_messenger")], :onlyif => "ps aux | grep beam | grep master")
has_remotefile(:name => "/usr/bin/puppetcleaner") do
mode 744
template File.join(File.dirname(__FILE__), "..", "templates/puppetcleaner")
end
\ No newline at end of file