Add VM test configuration
This commit is contained in:
parent
d74b5d09a5
commit
53714ec45f
1 changed files with 39 additions and 0 deletions
39
terraform/proxmox/test.tf
Normal file
39
terraform/proxmox/test.tf
Normal file
|
@ -0,0 +1,39 @@
|
|||
resource "proxmox_virtual_environment_vm" "test" {
|
||||
node_name = "prox"
|
||||
vm_id = "9996"
|
||||
name = "test"
|
||||
description = "test"
|
||||
|
||||
cpu {
|
||||
cores = "2"
|
||||
type = "host"
|
||||
}
|
||||
|
||||
memory {
|
||||
dedicated = "2048"
|
||||
}
|
||||
|
||||
network_device {
|
||||
bridge = "vmbr0"
|
||||
vlan_id = "1"
|
||||
}
|
||||
|
||||
disk {
|
||||
datastore_id = "Fast2Tb"
|
||||
size = "20"
|
||||
}
|
||||
|
||||
clone {
|
||||
vm_id = "9996"
|
||||
}
|
||||
|
||||
initialization {
|
||||
ip_config {
|
||||
ipv4 {
|
||||
address = "dhcp"
|
||||
}
|
||||
}
|
||||
|
||||
user_data_file_id = proxmox_virtual_environment_file.cloud_config.id
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue