homelab/Vagrantfile

87 lines
2.1 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'
end
config.vm.provider :libvirt do |libvirt|
libvirt.management_network_domain = "ducamps-dev.win"
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|
libvirt.memory = 1024
libvirt.cpus = 2
end
end
config.vm.define "merlin-dev" do |c|
# Box definition
c.vm.box = "generic/rocky9"
# 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|
libvirt.memory = 1024
libvirt.cpus = 2
end
end
config.vm.define "gerard-dev" do |c|
# Box definition
c.vm.box = "debian/bookworm64"
# 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|
libvirt.memory = 1024
libvirt.cpus = 2
end
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|
libvirt.memory = 1024
libvirt.cpus = 2
end
c.vm.provision "ansible" do |bootstrap|
bootstrap.playbook= "ansible/playbooks/bootstrap.yml"
bootstrap.galaxy_roles_path= "ansible/roles"
bootstrap.limit="all"
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