daily pastebin goal
85%
SHARE
TWEET

Untitled

a guest May 27th, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Basic poolparty template
  2.  
  3. pool :clouds do
  4.   plugin_directory "#{File.dirname(__FILE__)}/plugins"
  5.  
  6.   cloud :app do
  7.     keypair "rails"
  8.     access_key "asd"
  9.     secret_access_key "vads"
  10.     ami "ami-1cd73375"
  11.    
  12.     instances 2..5
  13.     expand_when "cpu > 3.5"
  14.    
  15.     security_group "app"
  16.    
  17.     apache do
  18.       has_passengersite do
  19.         name "poolr.com"
  20.         listen 80
  21.       end
  22.     end
  23.    
  24.     mysql
  25.    
  26.     rails do
  27.       install
  28.       add_actions_for("/var/www/poolr.com")
  29.      
  30.       has_deploydirectory({:from => "#{File.dirname(__FILE__)}/..",
  31.           :name       => "Rails app",
  32.           :to         => "/var/www/poolr.com",
  33.           :requires   => get_exec("create-poolr-database"),
  34.           :notify     => [
  35.             get_exec("migrate-rails-/var/www/poolr.com"),
  36.             get_exec("reload-rails-on-passenger-/var/www/poolr.com")
  37.           ]
  38.         }
  39.       )
  40.     end
  41.   end
  42.  
  43.   cloud :db do
  44.     keypair "rails"
  45.     access_key "ads"
  46.     secret_access_key "vasd"
  47.     ami "ami-1cd73375"
  48.    
  49.     security_group "database"
  50.    
  51.     mysql do
  52.       install
  53.       has_database(:name => "poolr_prod", :user => "poolr", :password => "asd")
  54.     end
  55.   end
  56. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top