From 23acb72a1896e7ec14908456955d711151cd28d0 Mon Sep 17 00:00:00 2001 From: Daniel Thielking Date: Sat, 4 Feb 2017 18:31:16 +0100 Subject: [PATCH] Add virtualbox Provider to gui define --- Vagrantfile | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 647d4ef..ac52780 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -10,23 +10,25 @@ Vagrant.configure("2") do |config| config.vm.box = "debian/contrib-jessie64" config.vm.define "gui" do |gui| - # Set hostname for vm - config.vm.hostname = "#{suffix}-gui.#{fqdn}" - # Set VM name - gui.name = "#{suffix}-gui.#{fqdn}" - # Display the VirtualBox GUI when booting the machine - gui.gui = false - # Customize the amount of memory on the VM: - gui.memory = "2048" - # Enable 3D Acceleration - gui.customize ["modifyvm", :id, "--accelerate3d", "on"] - # Set Video Memory to 128MB - gui.customize ["modifyvm", :id, "--vram", "128"] + config.vm.provider "virtualbox" do |v| + # Set hostname for vm + config.vm.hostname = "#{suffix}-gui.#{fqdn}" + # Set VM name + v.name = "#{suffix}-gui.#{fqdn}" + # Display the VirtualBox GUI when booting the machine + v.gui = false + # Customize the amount of memory on the VM: + v.memory = "2048" + # Enable 3D Acceleration + v.customize ["modifyvm", :id, "--accelerate3d", "on"] + # Set Video Memory to 128MB + v.customize ["modifyvm", :id, "--vram", "128"] - # Provision of Linux Gui with ansible - config.vm.provision "ansible" do |ansible| - ansible.playbook = "gui/install.yaml" - ansible.verbose = "v" + # Provision of Linux Gui with ansible + config.vm.provision "ansible" do |ansible| + ansible.playbook = "ansible/install.yaml" + ansible.verbose = "v" + end end end