Guest User

Untitled

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