2021-11-27 05:53:58 +00:00
|
|
|
Vagrant.configure("2") do |config|
|
2023-06-13 05:04:39 +00:00
|
|
|
config.vm.box = "debian/bookworm64"
|
2021-11-27 05:53:58 +00:00
|
|
|
config.vm.network "private_network", type: "dhcp"
|
|
|
|
config.vm.synced_folder ".", "/vagrant", disabled: true
|
|
|
|
|
2023-06-13 05:04:39 +00:00
|
|
|
# Libvrit settings
|
|
|
|
config.vm.provider :libvirt do |domain|
|
|
|
|
domain.memory = 4096
|
|
|
|
domain.cpus = 2
|
|
|
|
end
|
|
|
|
|
2021-11-27 05:53:58 +00:00
|
|
|
# Boot with a GUI in VirtualBox
|
|
|
|
config.vm.provider "virtualbox" do |vbox|
|
2021-12-09 01:02:49 +00:00
|
|
|
vbox.customize ["modifyvm", :id, "--vram", "128",
|
|
|
|
"--graphicscontroller", "vboxvga",
|
|
|
|
"--accelerate3d", "on"]
|
2021-11-27 05:53:58 +00:00
|
|
|
vbox.memory = 4096
|
|
|
|
vbox.cpus = 2
|
|
|
|
vbox.gui = true
|
|
|
|
end
|
|
|
|
|
|
|
|
# Provision with Ansible
|
|
|
|
config.vm.provision "ansible" do |ansible|
|
|
|
|
ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles"
|
|
|
|
ansible.compatibility_mode = "2.0"
|
|
|
|
ansible.playbook = "site-vagrant.yml"
|
|
|
|
end
|
|
|
|
end
|