From af2ee0a0766a228ed0eadb4f93bf22453ebc475d Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Tue, 1 Aug 2023 16:22:24 +0200 Subject: [PATCH] add virtual machine on lewis to swarm --- ansible/inventory/hosts.yml | 2 ++ terraform/main.tf | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/ansible/inventory/hosts.yml b/ansible/inventory/hosts.yml index b7bce70..a0e4d38 100644 --- a/ansible/inventory/hosts.yml +++ b/ansible/inventory/hosts.yml @@ -9,3 +9,5 @@ all: hosts: bancomart: ansible_host: bancomart.dmz + handjecontantje: + ansible_host: handjecontantje.dmz diff --git a/terraform/main.tf b/terraform/main.tf index 1c9cd32..ccb2133 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -24,6 +24,11 @@ provider "libvirt" { uri = "qemu+ssh://root@jefke.hyp/system" } +provider "libvirt" { + alias = "lewis" + uri = "qemu+ssh://root@lewis.hyp/system" +} + module "maestro" { source = "git::https://git.kun.is/home/tf-modules.git//debian" name = "maestro" @@ -44,3 +49,13 @@ module "bancomart" { 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 + } +}