Sha256: 36bfdf522f96c8c678b174f68274ebd183ff6da8dd1f2bd51bd0f8598d2d2d00
Contents?: true
Size: 1.54 KB
Versions: 28
Compression:
Stored size: 1.54 KB
Contents
$:.unshift File.dirname(__FILE__)+'/../lib/' require "poolparty" # $DEBUGGING=true # $VERBOSE=true pool :eucalyptus do clouds_dot_rb_file File.expand_path(__FILE__) cloud :sample do instances 1..2 os :ubuntu bootstrap_script File.expand_path(File.dirname(__FILE__)/'custom_bootstrap.sh') # monitor :load do |l| # vote_for(:expand) if l > 0.9 # end keypair "eucalyptus_sample" using :ec2 do image_id 'emi-39CA160F' end has_file "/etc/motd", :content => "Welcome to your eucalyptus cloud!!!!!!!" has_directory '/mnt/ebs', :owner => 'poolparty' has_exec 'touch /tmp/touched' has_group 'partiers' has_user 'fred' has_cron :minute=>'5', :command => 'touch /tmp/touched' has_line_in_file '/tmp/touched', :line => 'lined up HERE!' has_package 'vim' has_variable "hookie", "pookie" has_directory "/etc/poolparty/nodes" clouds.each do |oname, cld| has_directory "/etc/poolparty/nodes/#{oname}" cld.nodes.each do |n| has_file "/etc/poolparty/nodes/#{oname}/#{n.instance_id}", :content => "#{n.public_ip}" end end end cloud :bab do instances 1 keypair "ari" using :ec2 do image_id 'emi-39CA160F' end has_directory "/etc/poolparty/nodes" clouds.each do |oname, cld| has_directory "/etc/poolparty/nodes/#{oname}" cld.nodes.each do |n| has_file "/etc/poolparty/nodes/#{oname}/#{n.instance_id}", :content => "#{n.public_ip}" end end end end
Version data entries
28 entries across 28 versions & 3 rubygems