homelab/Vagrantfile

106 lines
3.0 KiB
Ruby
Raw Permalink Normal View History

2023-08-25 08:13:29 +00:00
Vagrant.configure('2') do |config|
if Vagrant.has_plugin?('vagrant-cachier')
config.cache.scope = 'machine'
2024-05-08 19:07:57 +00:00
config.cache.enable :pacman
2023-08-25 08:13:29 +00:00
end
config.vm.provider :libvirt do |libvirt|
2024-02-13 19:24:42 +00:00
libvirt.management_network_domain = "lan.ducamps.dev"
end
2023-08-25 08:13:29 +00:00
config.vm.define "oscar-dev" do |c|
# Box definition
c.vm.box = "archlinux/archlinux"
# Config options
c.vm.synced_folder ".", "/vagrant", disabled: true
c.ssh.insert_key = true
c.vm.hostname = "oscar-dev"
# Network
# instance_raw_config_args
# Provider
c.vm.provider "libvirt" do |libvirt, override|
2024-05-10 06:21:18 +00:00
libvirt.memory = 2048
2023-08-25 08:13:29 +00:00
libvirt.cpus = 2
end
2023-10-29 14:29:20 +00:00
c.vm.provision "ansible" do |bootstrap|
bootstrap.playbook= "ansible/playbooks/bootstrap.yml"
bootstrap.galaxy_roles_path= "ansible/roles"
bootstrap.limit="oscar-dev"
bootstrap.extra_vars = { ansible_python_interpreter:"/usr/bin/python3" }
end
2023-08-25 08:13:29 +00:00
end
config.vm.define "merlin-dev" do |c|
# Box definition
2024-02-04 20:24:32 +00:00
c.vm.box = "archlinux/archlinux"
2023-08-25 08:13:29 +00:00
# Config options
c.vm.synced_folder ".", "/vagrant", disabled: true
c.ssh.insert_key = true
c.vm.hostname = "merlin-dev"
# Network
# instance_raw_config_args
# Provider
c.vm.provider "libvirt" do |libvirt, override|
2024-05-10 06:21:18 +00:00
libvirt.memory = 512
2023-08-25 08:13:29 +00:00
libvirt.cpus = 2
end
2023-10-29 14:28:48 +00:00
c.vm.provision "ansible" do |bootstrap|
bootstrap.playbook= "ansible/playbooks/bootstrap.yml"
bootstrap.galaxy_roles_path= "ansible/roles"
bootstrap.limit="merlin-dev"
bootstrap.extra_vars = { ansible_python_interpreter:"/usr/bin/python3" }
end
2023-08-25 08:13:29 +00:00
end
config.vm.define "gerard-dev" do |c|
# Box definition
2024-05-08 19:07:57 +00:00
c.vm.box = "archlinux/archlinux"
2023-08-25 08:13:29 +00:00
# Config options
c.vm.synced_folder ".", "/vagrant", disabled: true
c.ssh.insert_key = true
c.vm.hostname = "gerard-dev"
# Network
# instance_raw_config_args
# Provider
c.vm.provider "libvirt" do |libvirt, override|
2024-05-10 06:21:18 +00:00
libvirt.memory = 2048
2023-08-25 08:13:29 +00:00
libvirt.cpus = 2
end
2023-10-29 14:29:20 +00:00
c.vm.provision "ansible" do |bootstrap|
bootstrap.playbook= "ansible/playbooks/bootstrap.yml"
bootstrap.galaxy_roles_path= "ansible/roles"
bootstrap.limit="gerard-dev"
bootstrap.extra_vars = { ansible_python_interpreter:"/usr/bin/python3" }
end
2023-08-25 08:13:29 +00:00
end
config.vm.define "nas-dev" do |c|
# Box definition
c.vm.box = "archlinux/archlinux"
# Config options
c.vm.synced_folder ".", "/vagrant", disabled: true
c.ssh.insert_key = true
c.vm.hostname = "nas-dev"
# Network
# instance_raw_config_args
# Provider
c.vm.provider "libvirt" do |libvirt, override|
2024-05-10 06:21:18 +00:00
libvirt.memory = 2048
2023-08-25 08:13:29 +00:00
libvirt.cpus = 2
end
c.vm.provision "ansible" do |bootstrap|
bootstrap.playbook= "ansible/playbooks/bootstrap.yml"
bootstrap.galaxy_roles_path= "ansible/roles"
2023-10-29 14:29:20 +00:00
bootstrap.limit="nas-dev"
2023-08-25 11:53:59 +00:00
bootstrap.extra_vars = { ansible_python_interpreter:"/usr/bin/python3" }
2023-08-25 08:13:29 +00:00
end
end
2023-08-25 11:53:59 +00:00
2023-08-25 08:13:29 +00:00
end