Guest User

Untitled

a guest
Mar 1st, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. # Basic poolparty template
  2. pool :clouds do
  3.  
  4. instances 2..5
  5. port 80
  6. # Alestic's base ubuntu AMI
  7. ami "ami-1cd73375"
  8.  
  9. cloud :app do
  10. set_master_ip_to "75.101.155.166"
  11. mount_ebs_volume_at "vol-10ed0a79", "/vol"
  12.  
  13. mysql do
  14. install_on_volume("/vol")
  15. has_database(:name => "test_database", :user => "readable", :password => "readable")
  16. end
  17.  
  18. apache do
  19. installed_as_worker
  20.  
  21. has_virtualhost do |vh|
  22. name "poolpartyrb.com"
  23. listen("8080")
  24. virtual_host_entry ::File.join(File.dirname(__FILE__), "templates", "virtual_host.conf.erb")
  25.  
  26. # We are going to have a repository that is updated across the servers
  27. has_git({:name => "poolpartyrepos",
  28. :source => "git://github.com/auser/poolparty-website.git",
  29. :at => "/var/www/poolpartyrb.com"}) do |g|
  30. notify get_service("apache2")
  31. # We don't keep the site in the top level of the repos, so let's create
  32. # a symlink so that the public directory is a symlink of the root level
  33. # site directory
  34. # Requires is a temporary fix
  35. has_symlink({:name => "/var/www/poolpartyrb.com/public", :source => "/var/www/poolpartyrb.com/poolparty-website/site"})
  36.  
  37. end
  38. end
  39. end
  40.  
  41. end
  42.  
  43. end
Add Comment
Please, Sign In to add comment