Sha256: 3a763c74c3f1eae1a4ec8169bc524cc469ada3073e85a49effd84b0ce7d25ffc
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
module PoolParty class Base plugin :poolparty do def enable has_package(:name => "erlang") # These should be installed automagically by poolparty, but just in case with_options(:requires => 'Package["update-rubygems"]') do has_gempackage(:name => "open4") has_gempackage(:name => "activesupport") has_gempackage(:name => "logging") has_gempackage(:name => "hoe") has_gempackage(:name => "xml-simple") has_gempackage(:name => "ruby2ruby") has_gempackage(:name => "grempe-amazon-ec2", :source => "http://gems.github.com", :requires => 'Package["xml-simple"]') has_gempackage(:name => "auser-poolparty", :source => "http://gems.github.com", :requires => 'Package["activesupport", "logging", "hoe", "open4"]') end # Build hostsfile # TODO: COME BACK AND CLEAN THIS UP (self.respond_to?(:list_of_running_instances) ? self : parent).list_of_running_instances.each do |ri| has_host({:name => "#{ri.name}", :ip => ri.ip }) end # has_host(:name => "puppet", :ip => (self.respond_to?(:master) ? self : parent).master.ip) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auser-poolparty-0.2.5 | lib/poolparty/base_packages/poolparty.rb |