daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest May 16th, 2018 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require "rubygems"
  2. require "poolparty"
  3.  
  4. pool "botchagalupe" do
  5.  
  6.   cloud "autoscale" do
  7.     instances 2..5
  8.     using :ec2
  9.     autoscale do
  10.       trigger :lower_threshold => 0.3, :upper_threshold => 1.0, :measure => :cpu
  11.     end
  12.     image_id "ami-c154b5a8" #bitnami mediwiki
  13.     availability_zones ['us-east-1b']
  14.     security_group "botchagalupe-security-group" do
  15.       %w(22 80 443 8642).each {|port| authorize :from_port => port, :to_port => port}
  16.     end
  17.     load_balancer do
  18.       listener :external_port => 8080, :internal_port => 8080, :protocol => 'tcp'
  19.     end
  20.   end
  21.  
  22. end
RAW Paste Data
Top