-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathVagrantfile
36 lines (33 loc) · 1.31 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vbox|
vbox.memory = 512
vbox.cpus = 1
# USB 2.0 is enabled by default in virtualbox. Since most people dont't need ist and it causes a failure in the ARTACK/debian-jessie box,
# we simply disable it.
vbox.customize ["modifyvm", :id, "--usb", "off"]
vbox.customize ["modifyvm", :id, "--usbehci", "off"]
end
# Workaround to skip nasty tty errors during provisioning
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
config.vm.define "default" do |default|
default.vm.provision "shell", path: "vagrant/init.sh"
default.vm.synced_folder("vagrant/hiera", "/etc/puppet/hiera")
default.vm.provision :puppet do |puppet|
puppet.manifests_path = "vagrant/manifests"
puppet.manifest_file = "site.pp"
puppet.module_path = ["vagrant/modules"]
puppet.hiera_config_path = "vagrant/hiera/hiera.yaml"
puppet.working_directory = "/etc/puppet/hiera"
puppet.options = "--verbose"
puppet.facter = {
"fqdn" => "default.vagrant.up",
"vagrant" => 1,
"virtual" => "virtualbox"
}
end # puppet
end # config
end #vagrant