lib/poolparty/base_packages/poolparty.rb in auser-poolparty-0.2.16 vs lib/poolparty/base_packages/poolparty.rb in auser-poolparty-0.2.20

- old
+ new

@@ -2,29 +2,33 @@ class Base plugin :poolparty do def enable has_package(:name => "erlang") + has_package(:name => "erlang-dev") + has_package(:name => "erlang-src") has_package(:name => "rubygems") do # These should be installed automagically by poolparty, but just in case # TODO: Fix the requires method with a helper has_gempackage(:name => "logging") - has_gempackage(:name => "xml-simple") do + has_gempackage(:name => "xml-simple", :source => "/var/poolparty/xml-simple.gem") do has_gempackage(:name => "grempe-amazon-ec2", :source => "http://gems.github.com") end - has_gempackage(:name => "hoe") do - has_gempackage(:name => "open4") - - has_gempackage(:name => "ParseTree", :version => "2.2.0") do - has_gempackage(:name => "ruby2ruby") - has_gempackage(:name => "activesupport") do - has_gempackage(:name => "auser-poolparty", :source => "http://gems.github.com") + has_gempackage(:name => "open4") + + has_gempackage(:name => "ParseTree", :version => "2.2.0") do + has_gempackage(:name => "ruby2ruby") + has_gempackage(:name => "activesupport") do + has_gempackage(:name => "auser-poolparty", :source => "http://gems.github.com") do + has_exec(:name => "build_messenger", :command => ". /etc/profile && server-build-messenger") do + has_exec(:name => "start_node", :command => ". /etc/profile && server-start-node") + end end - has_gempackage(:name => "RubyInline") end + has_gempackage(:name => "RubyInline") end end # Build hostsfile @@ -39,10 +43,12 @@ command((self.respond_to?(:master) ? self : parent).master.puppet_runner_command) end # These are all requirements on the master execute_if("$hostname", "master") do - has_cron({:command => ". /etc/profile && which cloud-maintain | /bin/sh", :minute => "*/3"}) + 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 => ". /etc/profile && server-start-master") end # has_host(:name => "puppet", :ip => (self.respond_to?(:master) ? self : parent).master.ip) end end \ No newline at end of file