chore: improvements in docs

This commit is contained in:
ITQ
2025-08-20 13:53:21 +03:00
parent 4febd4f75a
commit 5bec757a16
9 changed files with 85 additions and 45 deletions
+5 -4
View File
@@ -35,17 +35,18 @@ resource "libvirt_volume" "worker_images" {
data "template_file" "user_data" {
for_each = local.user_templates
template = file("${path.module}/configs/cloud-init/${each.value}")
template = file("${path.root}/configs/cloud-init/${each.value}")
vars = {
hosts_file = base64encode(file("${path.module}/configs/hosts"))
ssh_public_key = file("../.ssh/id_rsa.pub")
hosts_file = base64encode(file("${path.root}/../configs/hosts"))
manifest_file = base64encode(file("${path.root}/configs/k8s/manifest.yaml"))
ssh_public_key = file("${path.root}/../.ssh/id_rsa.pub")
}
}
data "template_file" "network_config" {
for_each = local.user_templates
template = file("${path.module}/configs/cloud-init/network.yaml.tpl")
template = file("${path.root}/configs/cloud-init/network.yaml.tpl")
vars = {
ipv4_address = local.node_addrs[each.key].ipv4
ipv4_prefix = local.ipv4_prefix