From 0ce4fda75881de104f26332582a2306ed9f9dac0 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sun, 12 Mar 2023 22:05:57 +0100 Subject: [PATCH] change hostname --- cloud_init.cfg.tftpl | 2 +- main.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud_init.cfg.tftpl b/cloud_init.cfg.tftpl index 18c4c02..66bd3c3 100644 --- a/cloud_init.cfg.tftpl +++ b/cloud_init.cfg.tftpl @@ -1,5 +1,5 @@ #cloud-config -hostname: ${name} +hostname: dns manage_etc_hosts: true ssh_pwauth: false disable_root: false diff --git a/main.tf b/main.tf index fc52cdc..caff4bc 100644 --- a/main.tf +++ b/main.tf @@ -43,7 +43,7 @@ resource "libvirt_domain" "ubuntu" { network_interface { network_name = "dmzbr" - hostname = var.name + hostname = "dns" addresses = ["${var.internal_ip}/24"] mac = "ca:fe:c0:ff:ee:07" }