Initial ansible onboard
This commit is contained in:
Vendored
+54
@@ -0,0 +1,54 @@
|
||||
Vagrant.require_version ">= 1.8.0"
|
||||
|
||||
Vagrant.configure(2) do |config|
|
||||
|
||||
config.vm.define "jammy.simple_server" do |web|
|
||||
config.vm.box = "jaredeh/ubuntu2204-server"
|
||||
config.vm.box_version = "0.1.1"
|
||||
|
||||
config.vm.provider :libvirt do |libvirt|
|
||||
libvirt.video_type = 'vga'
|
||||
libvirt.host = 'localhost'
|
||||
libvirt.uri = 'qemu:///system'
|
||||
libvirt.nested = false
|
||||
libvirt.memory = 4096
|
||||
libvirt.cpus = 4
|
||||
libvirt.cpuset = '1-4,^3,6'
|
||||
libvirt.cputopology :sockets => '2', :cores => '2', :threads => '1'
|
||||
end
|
||||
|
||||
config.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "playbooks/simple_server.yml"
|
||||
ansible.groups = { "vagrant" => ["jammy.simple_server"] }
|
||||
ansible.extra_vars = {
|
||||
target: "jammy.simple_server",
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
config.vm.define "jammy.virtualization_server" do |web|
|
||||
config.vm.box = "jaredeh/ubuntu2204-server"
|
||||
config.vm.box_version = "0.1.1"
|
||||
|
||||
config.vm.provider :libvirt do |libvirt|
|
||||
libvirt.video_type = 'vga'
|
||||
libvirt.host = 'localhost'
|
||||
libvirt.uri = 'qemu:///system'
|
||||
libvirt.nested = true
|
||||
libvirt.memory = 4096
|
||||
libvirt.cpus = 4
|
||||
libvirt.cpuset = '1-4,^3,6'
|
||||
libvirt.cputopology :sockets => '2', :cores => '2', :threads => '1'
|
||||
end
|
||||
|
||||
config.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "playbooks/virtualization_server.yml"
|
||||
ansible.groups = { "vagrant" => ["jammy.virtualization_server"] }
|
||||
ansible.extra_vars = {
|
||||
target: "jammy.virtualization_server",
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user