mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-06-29 18:21:10 +00:00
experiments
This commit is contained in:
parent
dbe26ed58f
commit
32fb46988d
@ -9,12 +9,12 @@ resource "proxmox_virtual_environment_vm" "example_template" {
|
||||
|
||||
description = "Managed by Terraform"
|
||||
|
||||
# disk {
|
||||
# datastore_id = local.datastore_id
|
||||
# file_id = proxmox_virtual_environment_file.ubuntu_cloud_image.id
|
||||
# interface = "virtio0"
|
||||
# iothread = true
|
||||
# }
|
||||
# disk {
|
||||
# datastore_id = local.datastore_id
|
||||
# file_id = proxmox_virtual_environment_file.ubuntu_cloud_image.id
|
||||
# interface = "virtio0"
|
||||
# iothread = true
|
||||
# }
|
||||
|
||||
disk {
|
||||
datastore_id = local.datastore_id
|
||||
@ -23,13 +23,13 @@ resource "proxmox_virtual_environment_vm" "example_template" {
|
||||
discard = "on"
|
||||
ssd = true
|
||||
}
|
||||
#
|
||||
# disk {
|
||||
# datastore_id = "nfs"
|
||||
# interface = "scsi1"
|
||||
# discard = "ignore"
|
||||
# file_format = "raw"
|
||||
# }
|
||||
|
||||
disk {
|
||||
datastore_id = "nfs"
|
||||
interface = "scsi1"
|
||||
discard = "ignore"
|
||||
file_format = "raw"
|
||||
}
|
||||
|
||||
initialization {
|
||||
datastore_id = local.datastore_id
|
||||
@ -44,14 +44,14 @@ resource "proxmox_virtual_environment_vm" "example_template" {
|
||||
}
|
||||
}
|
||||
|
||||
user_data_file_id = proxmox_virtual_environment_file.user_config.id
|
||||
user_data_file_id = proxmox_virtual_environment_file.user_config.id
|
||||
vendor_data_file_id = proxmox_virtual_environment_file.vendor_config.id
|
||||
}
|
||||
|
||||
name = "terraform-provider-proxmox-example-template"
|
||||
|
||||
network_device {
|
||||
mtu = 1450
|
||||
mtu = 1450
|
||||
}
|
||||
|
||||
network_device {
|
||||
@ -77,7 +77,7 @@ resource "proxmox_virtual_environment_vm" "example" {
|
||||
node_name = data.proxmox_virtual_environment_nodes.example.names[0]
|
||||
pool_id = proxmox_virtual_environment_pool.example.id
|
||||
vm_id = 2041
|
||||
tags = ["terraform", "ubuntu"]
|
||||
tags = ["terraform", "ubuntu"]
|
||||
|
||||
clone {
|
||||
vm_id = proxmox_virtual_environment_vm.example_template.id
|
||||
|
@ -779,27 +779,30 @@ func resourceVirtualEnvironmentVM() *schema.Resource {
|
||||
MinItems: 0,
|
||||
},
|
||||
mkResourceVirtualEnvironmentVMInitializationUserDataFileID: {
|
||||
Type: schema.TypeString,
|
||||
Description: "The ID of a file containing custom user data",
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
Default: dvResourceVirtualEnvironmentVMInitializationUserDataFileID,
|
||||
Type: schema.TypeString,
|
||||
Description: "The ID of a file containing custom user data",
|
||||
Computed: true,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
//Default: dvResourceVirtualEnvironmentVMInitializationUserDataFileID,
|
||||
ValidateDiagFunc: getFileIDValidator(),
|
||||
},
|
||||
mkResourceVirtualEnvironmentVMInitializationVendorDataFileID: {
|
||||
Type: schema.TypeString,
|
||||
Description: "The ID of a file containing vendor data",
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
Default: dvResourceVirtualEnvironmentVMInitializationVendorDataFileID,
|
||||
Type: schema.TypeString,
|
||||
Description: "The ID of a file containing vendor data",
|
||||
Computed: true,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
//Default: dvResourceVirtualEnvironmentVMInitializationVendorDataFileID,
|
||||
ValidateDiagFunc: getFileIDValidator(),
|
||||
},
|
||||
mkResourceVirtualEnvironmentVMInitializationNetworkDataFileID: {
|
||||
Type: schema.TypeString,
|
||||
Description: "The ID of a file containing network config",
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
Default: dvResourceVirtualEnvironmentVMInitializationNetworkDataFileID,
|
||||
Type: schema.TypeString,
|
||||
Description: "The ID of a file containing network config",
|
||||
Computed: true,
|
||||
Optional: true,
|
||||
ForceNew: true,
|
||||
//Default: dvResourceVirtualEnvironmentVMInitializationNetworkDataFileID,
|
||||
ValidateDiagFunc: getFileIDValidator(),
|
||||
},
|
||||
mkResourceVirtualEnvironmentVMInitializationType: {
|
||||
|
Loading…
Reference in New Issue
Block a user