Sha256: 3e7ad386ef1168f79d0336e852c2aa27a0567a923fce733337c88eea692fb357
Contents?: true
Size: 929 Bytes
Versions: 4
Compression:
Stored size: 929 Bytes
Contents
# the following three lines are only necessary if you want to irb -r thisfile $:.unshift("#{File.dirname(__FILE__)}/../lib") require "rubygems" require "poolparty" pool "poolparty" do cloud "simple" do instances 1..3 using :ec2 autoscale image_id "ami-ccf615a5" #alestic jaunty availability_zones ['us-east-1b'] #TODO: accept array of hashes defining security group rules # security_gropup [ # {:port=>22, :protocol=>'tcp' }, # {:port=>80, :protocol=>'tcp' :source=>'10.0.0.0/8', :group=>'monitor'}, # {:port=>3000..3006, :protocol=>'tcp' :group=>'monitor' }, # {:port=>53, :protocol=>'udp' } # ] security_group "dummy-test-security-group" do %w(22 80 443 8642).each {|port| authorize :from_port => port, :to_port => port} end load_balancer do listener :external_port => 8080, :internal_port => 8080, :protocol => 'tcp' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
poolparty-1.4.4 | examples/simple.rb |
poolparty-1.4.3 | examples/simple.rb |
poolparty-1.4.2 | examples/simple.rb |
poolparty-1.4.1 | examples/simple.rb |