You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.0KB

  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant.configure(2) do |config|
  4. config.vm.box = "ubuntu/trusty64"
  5. if Vagrant.has_plugin?("vagrant-cachier")
  6. config.cache.scope = :box
  7. end
  8. config.vm.provision :shell, inline: "sudo locale-gen en_IE.UTF-8"
  9. config.vm.network "private_network", type: "dhcp"
  10. config.vm.hostname = "icinga2-formula"
  11. config.vm.synced_folder "../../icinga2", "/srv/formulas/icinga2"
  12. config.vm.synced_folder "../salt", "/srv/salt"
  13. config.vm.synced_folder "../pillar", "/srv/pillar/"
  14. # Testing with tox and testinfra
  15. # config.vm.synced_folder "../testinfra", "/vagrant/testinfra"
  16. config.vm.provider "virtualbox" do |vb|
  17. vb.name = "icinga2-formula"
  18. vb.memory = "1024"
  19. end
  20. config.vm.provision :salt do |salt|
  21. salt.masterless = true
  22. salt.minion_config = "conf/minion"
  23. salt.run_highstate = true
  24. end
  25. #config.vm.provision "shell", inline: "sudo pip install tox"
  26. #config.vm.provision "test", type: "shell" do |t|
  27. # t.inline = "tox -c /vagrant/tox.ini"
  28. #end
  29. end