ci: add changed config

This commit is contained in:
Patryk Hegenberg 2025-05-07 20:28:49 +02:00
parent 5c57494895
commit 5e85050e79
8 changed files with 260 additions and 36 deletions

View file

@ -1,18 +0,0 @@
output "server_ip" {
description = "IP address of the K3s server node."
value = libvirt_domain.server.network_interface[0].addresses[0]
}
output "agent_ips" {
description = "List of IP addresses of the K3s agent nodes."
value = [libvirt_domain.agent.network_interface[0].addresses[0]]
}
resource "local_file" "ansible_inventory" {
content = templatefile("${path.module}/inventory.ini.tpl", {
server_ip = libvirt_domain.server.network_interface[0].addresses[0]
agent_ips = [libvirt_domain.agent.network_interface[0].addresses[0]]
ssh_user = var.vm_user
})
filename = "../ansible/inventory.ini"
}