Skip to content

Commit

Permalink
add machine hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
Haibread committed Feb 3, 2024
1 parent bec9e0d commit 56332db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions infrastructure-terraform/virtual_machines.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ resource "vsphere_virtual_machine" "test-machine" {
clone {
template_uuid = data.vsphere_content_library_item.jammy-server.id
customize {
linux_options {
host_name = "test-vm"
domain = "homelab.lan"
}
network_interface {
ipv4_address = "10.0.10.2"
ipv4_netmask = "24"
Expand Down

0 comments on commit 56332db

Please sign in to comment.