Обновить terraform/main.tf

This commit is contained in:
2026-05-22 15:07:59 +03:00
parent 2977dc037d
commit 676612ae4f
+3 -3
View File
@@ -22,7 +22,7 @@ variable "vsphere_datacenter" {}
variable "vsphere_datastore" {} variable "vsphere_datastore" {}
variable "vsphere_pool" {} variable "vsphere_pool" {}
variable "vsphere_network" {} variable "vsphere_network" {}
variable "vsphere_template" { default = "debian-minimal-template" } variable "vsphere_template" { default = "debian13-template" }
# --- Настройка провайдера --- # --- Настройка провайдера ---
provider "vsphere" { provider "vsphere" {
@@ -88,10 +88,10 @@ resource "vsphere_virtual_machine" "npm_vm" {
} }
network_interface { network_interface {
ipv4_address = var.vm_ip ipv4_address = var.vm_ip
ipv4_netmask = 24 # При необходимости маску тоже можно вынести в Survey ipv4_netmask = 23 # При необходимости маску тоже можно вынести в Survey
} }
ipv4_gateway = var.vm_gateway ipv4_gateway = var.vm_gateway
dns_server_list = ["8.8.8.8", "1.1.1.1"] dns_server_list = ["192.168.1.1", "1.1.1.1"]
} }
} }
} }