Skip to content

Commit

Permalink
Add virtualbox Provider to gui define
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Thielking committed Feb 4, 2017
1 parent 1bba5b6 commit 23acb72
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 23acb72

Please sign in to comment.