Guest User

Untitled

a guest
Jan 20th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. %x(vagrant plugin install vagrant-hostsupdater) unless Vagrant.has_plugin?('vagrant-hostsupdater')
  4.  
  5. VAGRANTFILE_API_VERSION = "2"
  6.  
  7. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  8. config.ssh.insert_key = false
  9. config.vm.box = "ubuntu/trusty64"
  10. config.vm.network :private_network, ip: "192.168.3.45"
  11. config.vm.hostname = "www-rimmellondon-com.development.ointernal.net"
  12. config.hostsupdater.aliases = ["domain1.local",
  13. "domain2.local",
  14. "domain3.local"]
  15. config.ssh.forward_agent = true
  16. config.vm.synced_folder "www", "/var/www", owner: "www-data", group: "www-data"
  17. config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "~/.ssh/vagrant_user.pub"
  18. config.vm.provision "file", source: "~/.ssh/id_rsa", destination: "~/.ssh/vagrant_user"
  19. config.hostsupdater.remove_on_suspend = false
  20. config.vm.provider "virtualbox" do |vb|
  21. vb.memory = 256
  22. end
  23.  
  24. config.vm.provision "ansible" do |ansible|
  25. ansible.playbook = "./ansible/vagrant.yml"
  26. ansible.galaxy_role_file = "./ansible/vagrant_requirements.yml"
  27. ansible.galaxy_roles_path = "./ansible/roles"
  28. end
  29. end
Add Comment
Please, Sign In to add comment