mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-04 21:14:05 +00:00
fix: use raw
file format for efi_disk
by default (#1249)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
This commit is contained in:
parent
8d6a7d70d4
commit
b3caf6af82
@ -293,7 +293,7 @@ output "ubuntu_vm_public_key" {
|
|||||||
to `ovmf`)
|
to `ovmf`)
|
||||||
- `datastore_id` (Optional) The identifier for the datastore to create
|
- `datastore_id` (Optional) The identifier for the datastore to create
|
||||||
the disk in (defaults to `local-lvm`).
|
the disk in (defaults to `local-lvm`).
|
||||||
- `file_format` (Optional) The file format.
|
- `file_format` (Optional) The file format (defaults to `raw`).
|
||||||
- `type` (Optional) Size and type of the OVMF EFI disk. `4m` is newer and
|
- `type` (Optional) Size and type of the OVMF EFI disk. `4m` is newer and
|
||||||
recommended, and required for Secure Boot. For backwards compatibility
|
recommended, and required for Secure Boot. For backwards compatibility
|
||||||
use `2m`. Ignored for VMs with cpu.architecture=`aarch64` (defaults
|
use `2m`. Ignored for VMs with cpu.architecture=`aarch64` (defaults
|
||||||
|
@ -609,6 +609,30 @@ func TestAccResourceVMDisks(t *testing.T) {
|
|||||||
RefreshState: true,
|
RefreshState: true,
|
||||||
},
|
},
|
||||||
}},
|
}},
|
||||||
|
{"efi disk", []resource.TestStep{
|
||||||
|
{
|
||||||
|
Config: te.renderConfig(`
|
||||||
|
resource "proxmox_virtual_environment_vm" "test_efi_disk" {
|
||||||
|
node_name = "{{.NodeName}}"
|
||||||
|
started = false
|
||||||
|
name = "test-efi-disk"
|
||||||
|
|
||||||
|
efi_disk {
|
||||||
|
datastore_id = "local-lvm"
|
||||||
|
type = "4m"
|
||||||
|
}
|
||||||
|
}`),
|
||||||
|
Check: resource.ComposeTestCheckFunc(
|
||||||
|
testResourceAttributes("proxmox_virtual_environment_vm.test_efi_disk", map[string]string{
|
||||||
|
"efi_disk.0.datastore_id": "local-lvm",
|
||||||
|
"efi_disk.0.type": "4m",
|
||||||
|
}),
|
||||||
|
),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
RefreshState: true,
|
||||||
|
},
|
||||||
|
}},
|
||||||
{"ide disks", []resource.TestStep{
|
{"ide disks", []resource.TestStep{
|
||||||
{
|
{
|
||||||
Config: te.renderConfig(`
|
Config: te.renderConfig(`
|
||||||
|
@ -72,7 +72,7 @@ const (
|
|||||||
dvDescription = ""
|
dvDescription = ""
|
||||||
|
|
||||||
dvEFIDiskDatastoreID = "local-lvm"
|
dvEFIDiskDatastoreID = "local-lvm"
|
||||||
dvEFIDiskFileFormat = "qcow2"
|
dvEFIDiskFileFormat = "raw"
|
||||||
dvEFIDiskType = "2m"
|
dvEFIDiskType = "2m"
|
||||||
dvEFIDiskPreEnrolledKeys = false
|
dvEFIDiskPreEnrolledKeys = false
|
||||||
dvTPMStateDatastoreID = "local-lvm"
|
dvTPMStateDatastoreID = "local-lvm"
|
||||||
|
Loading…
Reference in New Issue
Block a user