]> granicus.if.org Git - icinga2/blobdiff - Vagrantfile
Fix null ptr exception in Zone::GetLocalZone()
[icinga2] / Vagrantfile
index 396832bdd4f9a95293d1b2a68044e962020a0661..6ee1f61f052830e649f7e5b4cbf5838fd6a4a2ed 100644 (file)
@@ -9,11 +9,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
   # please see the online documentation at vagrantup.com.
 
   # Every Vagrant virtual environment requires a box to build off of.
-  config.vm.box = "centos-6.4-x64-vbox"
+  config.vm.box = "centos-6.5-i386-vbox"
 
   # The url from where the 'config.vm.box' box will be fetched if it
   # doesn't already exist on the user's system.
-  config.vm.box_url = "http://vagrant-boxes.icinga.org/centos-64-x64-vbox4212.box"
+  config.vm.box_url = "http://boxes.icinga.org/centos-65-i386-vbox.box"
+
+  # The hostname the machine should have. Defaults to nil. If nil, Vagrant
+  # won't manage the hostname. If set to a string, the hostname will be set on boot.
+  config.vm.hostname = "icinga2.demo.icinga.org"
 
   # Create a forwarded port mapping which allows access to a specific port
   # within the machine from a port on the host machine. In the example below,
@@ -26,6 +30,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
     # so you can take notice and act accordingly.
     auto_correct: true
 
+  # forward port for nsca-ng. See note above regarding auto_correct
+  config.vm.network :forwarded_port, guest: 5668, host: 5668, auto_correct: true
+
   # Create a private network, which allows host-only access to the machine
   # using a specific IP.
   # config.vm.network :private_network, ip: "192.168.33.10"
@@ -89,7 +96,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
   config.vm.provision :puppet do |puppet|
     puppet.module_path = ".vagrant-puppet/modules"
     puppet.manifests_path = ".vagrant-puppet/manifests"
-    # puppet.options = "-v -d"
+    #puppet.options = "--verbose --debug"
   end
 
   config.vm.provision :shell, :path => ".vagrant-puppet/manifests/finalize.sh"