Vagrantfile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant.configure("2") do |config|
  4. config.omnibus.chef_version = :latest
  5. config.vm.provision :chef_solo do |chef|
  6. chef.roles_path = "roles"
  7. chef.cookbooks_path = ["cookbooks", "site-cookbooks"]
  8. chef.add_role("huginn_development")
  9. # chef.add_role("huginn_production")
  10. end
  11. config.vm.provider :virtualbox do |vb, override|
  12. #vb.memory = 1024
  13. #vb.cpus = 4
  14. override.vm.box = "hashicorp/precise64"
  15. override.vm.network :forwarded_port, host: 3000, guest: 3000
  16. end
  17. config.vm.provider :parallels do |prl, override|
  18. override.vm.box = "parallels/ubuntu-12.04"
  19. end
  20. config.vm.provider :aws do |aws, override|
  21. aws.ami = ENV['AWS_AMI'] || "ami-828675f5"
  22. aws.region = ENV['AWS_REGION'] || "eu-west-1"
  23. aws.instance_type = "t1.micro"
  24. override.vm.box = "dummy"
  25. override.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box"
  26. override.ssh.private_key_path = ENV["AWS_SSH_PRIVKEY"]
  27. override.ssh.username = ENV['AWS_SSH_USER'] || "ubuntu"
  28. aws.access_key_id = ENV["AWS_ACCESS_KEY_ID"]
  29. aws.secret_access_key = ENV["AWS_SECRET_ACCESS_KEY"]
  30. aws.keypair_name = ENV["AWS_KEYPAIR_NAME"]
  31. aws.security_groups = [ ENV["AWS_SECURITY_GROUP"] ]
  32. end
  33. end