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.4-x64-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://vagrant-boxes.icinga.org/centos-64-x64-vbox4212.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 # Create a private network, which allows host-only access to the machine
34 # using a specific IP.
35 # config.vm.network :private_network, ip: "192.168.33.10"
37 # Create a public network, which generally matched to bridged network.
38 # Bridged networks make the machine appear as another physical device on
40 # config.vm.network :public_network
42 # If true, then any SSH connections made will enable agent forwarding.
43 # Default value: false
44 # config.ssh.forward_agent = true
46 # Share an additional folder to the guest VM. The first argument is
47 # the path on the host to the actual folder. The second argument is
48 # the path on the guest to mount the folder. And the optional third
49 # argument is a set of non-required options.
50 # config.vm.synced_folder "./config", "/vagrant/config"
51 # config.vm.synced_folder "./var/log", "/vagrant/var/log"
53 # Provider-specific configuration so you can fine-tune various
54 # backing providers for Vagrant. These expose provider-specific options.
55 # Example for VirtualBox:
57 # config.vm.provider :virtualbox do |vb|
58 # # Don't boot with headless mode
61 # # Use VBoxManage to customize the VM. For example to change memory:
62 # vb.customize ["modifyvm", :id, "--memory", "1024"]
65 # View the documentation for the provider you're using for more
66 # information on available options.
67 config.vm.provider "virtualbox" do |vb|
68 vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant/config", "1"]
71 # Enable provisioning with Puppet stand alone. Puppet manifests
72 # are contained in a directory path relative to this Vagrantfile.
73 # You will need to create the manifests directory and a manifest in
74 # the file base.pp in the manifests_path directory.
76 # An example Puppet manifest to provision the message of the day:
79 # # ensure => "present",
82 # # File { owner => 0, group => 0, mode => 0644 }
84 # # file { '/etc/motd':
85 # # content => "Welcome to your Vagrant-built virtual machine!
86 # # Managed by Puppet.\n"
89 # config.vm.provision :puppet do |puppet|
90 # puppet.manifests_path = "manifests"
91 # puppet.manifest_file = "init.pp"
93 config.vm.provision :puppet do |puppet|
94 puppet.module_path = ".vagrant-puppet/modules"
95 puppet.manifests_path = ".vagrant-puppet/manifests"
96 #puppet.options = "--verbose --debug"
99 config.vm.provision :shell, :path => ".vagrant-puppet/manifests/finalize.sh"