add virtual machine on lewis to swarm

This commit is contained in:
Pim Kunis 2023-08-01 16:22:24 +02:00
parent 056bfafcd5
commit af2ee0a076
2 changed files with 17 additions and 0 deletions

View file

@ -9,3 +9,5 @@ all:
hosts: hosts:
bancomart: bancomart:
ansible_host: bancomart.dmz ansible_host: bancomart.dmz
handjecontantje:
ansible_host: handjecontantje.dmz

View file

@ -24,6 +24,11 @@ provider "libvirt" {
uri = "qemu+ssh://root@jefke.hyp/system" uri = "qemu+ssh://root@jefke.hyp/system"
} }
provider "libvirt" {
alias = "lewis"
uri = "qemu+ssh://root@lewis.hyp/system"
}
module "maestro" { module "maestro" {
source = "git::https://git.kun.is/home/tf-modules.git//debian" source = "git::https://git.kun.is/home/tf-modules.git//debian"
name = "maestro" name = "maestro"
@ -44,3 +49,13 @@ module "bancomart" {
libvirt = libvirt.jefke libvirt = libvirt.jefke
} }
} }
module "handjecontantje" {
source = "git::https://git.kun.is/home/tf-modules.git//debian"
name = "handjecontantje"
domain_name = "tf-handjecontantje"
memory = 3 * 1024
providers = {
libvirt = libvirt.lewis
}
}