change hostname

This commit is contained in:
Pim Kunis 2023-03-12 22:05:57 +01:00
parent 0b1424514a
commit 0ce4fda758
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
#cloud-config
hostname: ${name}
hostname: dns
manage_etc_hosts: true
ssh_pwauth: false
disable_root: false

View file

@ -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"
}