This commit is contained in:
yanbang
2026-02-06 13:52:46 +08:00
parent 078be77e0f
commit ed937e8b2b

View File

@@ -21,7 +21,7 @@ resource "vsphere_virtual_machine" "test-starrocks-fe-vm" {
vapp { vapp {
properties = { properties = {
"user-data" = base64encode(templatefile("${path.module}/cloud-init.tpl", { "user-data" = base64encode(templatefile("${path.module}/cloud-init.tpl", {
ip_addr = "192.168.61.170" ip_addr = "192.168.61.171"
gateway = "192.168.61.1" gateway = "192.168.61.1"
dns1 = "192.168.61.1" dns1 = "192.168.61.1"
dns2 = "114.114.114.114" dns2 = "114.114.114.114"
@@ -34,7 +34,7 @@ resource "vsphere_virtual_machine" "test-starrocks-fe-vm" {
type = "ssh" type = "ssh"
user = "ubuntu" user = "ubuntu"
private_key = var.ssh_private_key_content private_key = var.ssh_private_key_content
host = "192.168.61.170" host = "192.168.61.171"
timeout = "2m" timeout = "2m"
} }