Vagrantfile 1.1 KB
Newer Older
Jean-Francois Rey's avatar
Jean-Francois Rey committed
1
Vagrant.configure("2") do |config|
Jean-Francois Rey's avatar
Jean-Francois Rey committed
2
	config.vm.box = "GAEV/MacOS_Catalina"
3
	config.vm.boot_timeout = 1800
4
	config.vm.synced_folder ".", "/vagrant", disabled: true
Jean-Francois Rey's avatar
Jean-Francois Rey committed
5
 
Jean-Francois Rey's avatar
Jean-Francois Rey committed
6
	# Configure Vagrant to use SSH
Jean-Francois Rey's avatar
Jean-Francois Rey committed
7
	config.vm.communicator = "ssh"
Jean-Francois Rey's avatar
Jean-Francois Rey committed
8
 
Jean-Francois Rey's avatar
Jean-Francois Rey committed
9
10
11
12
	# Configure SSH Connectivity
	config.ssh.username = "vagrant"
	config.ssh.password = "vagrant"
	config.ssh.export_command_template = 'export PATH=/usr/local/bin:$PATH'
Jean-Francois Rey's avatar
Jean-Francois Rey committed
13
14

	config.vm.provider "virtualbox" do |vb|
Jean-Francois Rey's avatar
Jean-Francois Rey committed
15
16
17
18
19
20
21
22
23
24
		# Display the VirtualBox GUI when booting the machine
		vb.gui = false
		vb.name = "MacOSCR4"
		vb.customize ["modifyvm", :id, "--memory", 8192]
		vb.customize ["modifyvm", :id, "--cpus", 4]
		vb.customize ["modifyvm", :id, "--vram", 128]
		vb.customize ["modifyvm", :id, "--graphicscontroller","vboxvga"]
		vb.customize ["modifyvm", :id, "--nested-hw-virt", "on"]
		vb.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ]
	end
Jean-Francois Rey's avatar
Jean-Francois Rey committed
25
26
	
	config.vm.provision "ansible" do |ansible|
Jean-Francois Rey's avatar
Jean-Francois Rey committed
27
		ansible.playbook = "ansible_provisioning/playbook.yml"
Jean-Francois Rey's avatar
Jean-Francois Rey committed
28
29
30
		ansible.inventory_path = "ansible_provisioning/group_vars/inventory.yml"
		ansible.verbose = "-vv"
		ansible.limit= "macos"
Jean-Francois Rey's avatar
Jean-Francois Rey committed
31
	end
Jean-Francois Rey's avatar
Jean-Francois Rey committed
32
33
end