Vagrantfile.ubuntu15 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ################
  2. # Ubuntu 15.04 #
  3. ################
  4. Vagrant.configure(2) do | config |
  5. config.ssh.insert_key = false
  6. config.ssh.username = 'vagrant'
  7. config.vm.provider :virtualbox do |vb|
  8. vb.customize ["modifyvm", :id, "--memory", "2048"]
  9. end
  10. config.vm.define "ubuntu15" do |ubuntu15|
  11. ubuntu15.vm.hostname = "ubuntu15.dev"
  12. ubuntu15.vm.box = "ubuntu/vivid64"
  13. ubuntu15.vm.network :private_network, ip: "192.168.40.6"
  14. ubuntu15.vm.network "forwarded_port", guest: 3000, host: 3003
  15. # Ansible
  16. config.vm.provision "ansible" do |ansible|
  17. ansible.groups = {
  18. "sensu_masters" => ["ubuntu15"],
  19. "rabbitmq_servers" => ["ubuntu15"],
  20. "redis_servers" => ["ubuntu15"],
  21. }
  22. ansible.extra_vars = {
  23. dynamic_data_store: "data/dynamic",
  24. rabbitmq_host: "192.168.40.6",
  25. rabbitmq_server: true,
  26. redis_host: "192.168.40.6",
  27. redis_server: true,
  28. sensu_api_host: "192.168.40.6",
  29. sensu_api_user_name: "admin",
  30. sensu_api_password: "admin",
  31. sensu_include_plugins: false,
  32. sensu_include_dashboard: true,
  33. sensu_master: true,
  34. uchiwa_dc_name: "vagrant",
  35. uchiwa_users: [{"username": "admin", "password": "admin"}]
  36. }
  37. ansible.sudo = true
  38. ansible.playbook = "provision.yml"
  39. end
  40. end
  41. end