Add VM Tester configuration
This commit is contained in:
parent
9638fbc4c4
commit
7f62aeadc3
1 changed files with 52 additions and 0 deletions
52
terraform/proxmox/Tester.tf
Normal file
52
terraform/proxmox/Tester.tf
Normal file
|
@ -0,0 +1,52 @@
|
|||
resource "proxmox_virtual_environment_vm" "Tester" {
|
||||
node_name = "prox"
|
||||
vm_id = "6568"
|
||||
name = "Tester"
|
||||
description = "Tester"
|
||||
|
||||
cpu {
|
||||
cores = "2"
|
||||
type = "host"
|
||||
architecture = "x86_64"
|
||||
}
|
||||
|
||||
memory {
|
||||
dedicated = "2048"
|
||||
}
|
||||
|
||||
network_device {
|
||||
bridge = "vmbr0"
|
||||
{{- if env.VLAN_ID }}
|
||||
vlan_id = "_No response_"
|
||||
{{- end }}
|
||||
}
|
||||
|
||||
disk {
|
||||
datastore_id = "Fast2Tb"
|
||||
size = "20"
|
||||
interface = "scsi0"
|
||||
}
|
||||
|
||||
clone {
|
||||
vm_id = "9996"
|
||||
}
|
||||
|
||||
initialization {
|
||||
ip_config {
|
||||
ipv4 {
|
||||
address = "dhcp"
|
||||
}
|
||||
}
|
||||
|
||||
user_data_file_id = proxmox_virtual_environment_file.cloud_config.id
|
||||
}
|
||||
|
||||
lifecycle {
|
||||
ignore_changes = [
|
||||
initialization[0].user_account[0].keys,
|
||||
initialization[0].user_account[0].password,
|
||||
initialization[0].user_account[0].username,
|
||||
initialization[0].user_data_file_id
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue