4 VAGRANTFILE_API_VERSION = "2"
6 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
7 # All Vagrant configuration is done here. The most common configuration
8 # options are documented and commented below. For a complete reference,
9 # please see the online documentation at vagrantup.com.
11 # Every Vagrant virtual environment requires a box to build off of.
12 config.vm.box = "centos-6.5-i386-vbox"
14 # The url from where the 'config.vm.box' box will be fetched if it
15 # doesn't already exist on the user's system.
16 config.vm.box_url = "http://boxes.icinga.org/centos-65-i386-vbox.box"
18 # The hostname the machine should have. Defaults to nil. If nil, Vagrant
19 # won't manage the hostname. If set to a string, the hostname will be set on boot.
20 config.vm.hostname = "icinga2.demo.icinga.org"
22 # Create a forwarded port mapping which allows access to a specific port
23 # within the machine from a port on the host machine. In the example below,
24 # accessing "localhost:8080" will access port 80 on the guest machine.
25 config.vm.network :forwarded_port, guest: 80, host: 8080,
26 # Port collision auto-correction must be manually enabled for each forwarded port,
27 # since it is often surprising when it occurs and can lead the Vagrant user to
28 # think that the port wasn't properly forwarded. During a vagrant up or vagrant reload,
29 # Vagrant will output information about any collisions detections and auto corrections made,
30 # so you can take notice and act accordingly.
33 # forward port for nsca-ng. See note above regarding auto_correct
34 config.vm.network :forwarded_port, guest: 5668, host: 5668, auto_correct: true
36 # Create a private network, which allows host-only access to the machine
37 # using a specific IP.
38 # config.vm.network :private_network, ip: "192.168.33.10"
40 # Create a public network, which generally matched to bridged network.
41 # Bridged networks make the machine appear as another physical device on
43 # config.vm.network :public_network
45 # If true, then any SSH connections made will enable agent forwarding.
46 # Default value: false
47 # config.ssh.forward_agent = true
49 # Share an additional folder to the guest VM. The first argument is
50 # the path on the host to the actual folder. The second argument is
51 # the path on the guest to mount the folder. And the optional third
52 # argument is a set of non-required options.
53 # config.vm.synced_folder "./config", "/vagrant/config"
54 # config.vm.synced_folder "./var/log", "/vagrant/var/log"
56 # Provider-specific configuration so you can fine-tune various
57 # backing providers for Vagrant. These expose provider-specific options.
58 # Example for VirtualBox:
60 # config.vm.provider :virtualbox do |vb|
61 # # Don't boot with headless mode
64 # # Use VBoxManage to customize the VM. For example to change memory:
65 # vb.customize ["modifyvm", :id, "--memory", "1024"]
68 # View the documentation for the provider you're using for more
69 # information on available options.
70 config.vm.provider "virtualbox" do |vb|
71 vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant/config", "1"]
74 # Enable provisioning with Puppet stand alone. Puppet manifests
75 # are contained in a directory path relative to this Vagrantfile.
76 # You will need to create the manifests directory and a manifest in
77 # the file base.pp in the manifests_path directory.
79 # An example Puppet manifest to provision the message of the day:
82 # # ensure => "present",
85 # # File { owner => 0, group => 0, mode => 0644 }
87 # # file { '/etc/motd':
88 # # content => "Welcome to your Vagrant-built virtual machine!
89 # # Managed by Puppet.\n"
92 # config.vm.provision :puppet do |puppet|
93 # puppet.manifests_path = "manifests"
94 # puppet.manifest_file = "init.pp"
96 config.vm.provision :puppet do |puppet|
97 puppet.module_path = ".vagrant-puppet/modules"
98 puppet.manifests_path = ".vagrant-puppet/manifests"
99 #puppet.options = "--verbose --debug"
102 config.vm.provision :shell, :path => ".vagrant-puppet/manifests/finalize.sh"