Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3.  
  4. # By default this VM will use 1 processor core and 1GB of RAM. The 'VM_CPUS' and
  5. # "VM_RAM" environment variables can be used to change that behaviour.
  6. CPUS = ENV["VM_CPUS"] || 1
  7. RAM = ENV["VM_RAM"] || 1048
  8.  
  9. Vagrant.configure(2) do |config|
  10.  
  11. config.vm.box = "inclusivedesign/centos7"
  12.  
  13. config.vm.network "private_network", type: "dhcp"
  14.  
  15. # This should be the same port that your application will use.
  16. config.vm.network "forwarded_port", guest: 8080, host: 8080
  17.  
  18. # Your Git working directory will be synced to /vagrant in the VM.
  19. #config.vm.synced_folder ".", "/home/vagrant", type: "rsync",
  20. # rsync__exclude: [".git/", "node_modules/"],
  21. # rsync__args: ["--verbose", "--archive", "-z", "--copy-links", "--include=gpii/node_modules/"]
  22.  
  23. config.vm.synced_folder ".", "/home/vagrant/sync", type: "nfs"
  24. config.vm.synced_folder "../first-discovery", "/home/vagrant/sync/lib/first-discovery", type: "nfs"
  25.  
  26. config.vm.provider :virtualbox do |vm|
  27. vm.customize ["modifyvm", :id, "--memory", RAM]
  28. vm.customize ["modifyvm", :id, "--cpus", CPUS]
  29. end
  30.  
  31. # The ansible-galaxy command assumes a git client is available in the VM, the
  32. # inclusivedesign/centos7 Vagrant box includes one.
  33. config.vm.provision "shell", inline: <<-SHELL
  34. sudo ansible-galaxy install -fr /home/vagrant/sync/provisioning/requirements.yml
  35. sudo PYTHONUNBUFFERED=1 ansible-playbook /home/vagrant/sync/provisioning/playbook.yml --tags="install,configure,deploy"
  36. SHELL
  37.  
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement