Init Project

This commit is contained in:
Сергей Филимонов 2024-12-03 18:20:16 +07:00
parent 8a3909ac0f
commit 6a18ae55c2

View File

@ -3,6 +3,10 @@ data "template_file" "user_data" {
template = file("${path.module}/cloud_init.yml") template = file("${path.module}/cloud_init.yml")
vars = { vars = {
login = "admin" login = "admin"
<<<<<<< HEAD
=======
passwd = "passwd"
>>>>>>> 51d0c3c (Init Project)
ip = var.domains[count.index].ip ip = var.domains[count.index].ip
} }
} }
@ -53,6 +57,10 @@ resource "libvirt_cloudinit_disk" "commoninit" {
pool = libvirt_pool.pool.name pool = libvirt_pool.pool.name
user_data = data.template_file.user_data[count.index].rendered user_data = data.template_file.user_data[count.index].rendered
network_config = data.template_file.network_config[count.index].rendered network_config = data.template_file.network_config[count.index].rendered
<<<<<<< HEAD
=======
>>>>>>> 51d0c3c (Init Project)
} }
resource "libvirt_domain" "vm" { resource "libvirt_domain" "vm" {