2013-05-29 17:34:18 +02:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
2015-02-04 10:46:36 +01:00
|
|
|
# Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+
|
2015-02-03 16:27:59 +01:00
|
|
|
|
2014-05-30 16:21:04 +02:00
|
|
|
VAGRANTFILE_API_VERSION = "2"
|
2014-12-18 13:53:22 +01:00
|
|
|
VAGRANT_REQUIRED_VERSION = "1.5.0"
|
2014-05-30 16:21:04 +02:00
|
|
|
|
|
|
|
if ! defined? Vagrant.require_version
|
|
|
|
if Gem::Version.new(Vagrant::VERSION) < Gem::Version.new(VAGRANT_REQUIRED_VERSION)
|
|
|
|
puts "Vagrant >= " + VAGRANT_REQUIRED_VERSION + " required. Your version is " + Vagrant::VERSION
|
|
|
|
exit 1
|
|
|
|
end
|
|
|
|
else
|
|
|
|
Vagrant.require_version ">= " + VAGRANT_REQUIRED_VERSION
|
|
|
|
end
|
|
|
|
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
2014-12-15 18:02:13 +01:00
|
|
|
config.vm.network "forwarded_port", guest: 80, host: 8080,
|
|
|
|
auto_correct: true
|
2013-05-29 17:34:18 +02:00
|
|
|
|
2014-12-15 18:02:13 +01:00
|
|
|
config.vm.provision :shell, :path => ".puppet/manifests/puppet.sh"
|
2013-05-29 17:34:18 +02:00
|
|
|
|
2014-12-15 18:02:13 +01:00
|
|
|
config.vm.provider :virtualbox do |v, override|
|
2015-07-24 14:34:13 +02:00
|
|
|
override.vm.box = "centos-71-x64-vbox"
|
|
|
|
override.vm.box_url = "http://boxes.icinga.org/centos-71-x64-vbox.box"
|
2013-05-29 17:34:18 +02:00
|
|
|
|
2014-12-15 18:02:13 +01:00
|
|
|
v.customize ["modifyvm", :id, "--memory", "1024"]
|
2015-07-24 14:34:13 +02:00
|
|
|
v.customize ["modifyvm", :id, "--cpus", "2"]
|
2014-12-15 18:02:13 +01:00
|
|
|
end
|
2013-05-29 17:34:18 +02:00
|
|
|
|
2014-12-15 18:02:13 +01:00
|
|
|
config.vm.provider :parallels do |p, override|
|
2015-07-20 16:49:17 +02:00
|
|
|
override.vm.box = "parallels/centos-7.1"
|
2013-05-29 17:34:18 +02:00
|
|
|
|
2014-12-15 18:02:13 +01:00
|
|
|
p.name = "Icinga Web 2 Development"
|
2013-05-29 17:34:18 +02:00
|
|
|
|
2014-12-15 18:02:13 +01:00
|
|
|
# Update Parallels Tools automatically
|
|
|
|
p.update_guest_tools = true
|
2013-05-29 17:34:18 +02:00
|
|
|
|
2014-12-15 18:02:13 +01:00
|
|
|
# Set power consumption mode to "Better Performance"
|
|
|
|
p.optimize_power_consumption = false
|
2013-07-23 16:26:14 +02:00
|
|
|
|
2014-12-15 18:02:13 +01:00
|
|
|
p.memory = 1024
|
|
|
|
p.cpus = 2
|
2013-07-23 16:26:14 +02:00
|
|
|
end
|
|
|
|
|
2013-05-29 17:34:18 +02:00
|
|
|
config.vm.provision :puppet do |puppet|
|
2014-12-15 18:02:13 +01:00
|
|
|
puppet.hiera_config_path = ".puppet/hiera/hiera.yaml"
|
|
|
|
puppet.module_path = [ ".puppet/modules", ".puppet/profiles" ]
|
|
|
|
puppet.manifests_path = ".puppet/manifests"
|
|
|
|
puppet.manifest_file = "site.pp"
|
2015-07-23 12:37:23 +02:00
|
|
|
puppet.options = "--parser=future"
|
2013-06-28 13:45:13 +02:00
|
|
|
end
|
2013-05-29 17:34:18 +02:00
|
|
|
end
|