Skip to content

Commit 10f7a57

Browse files
mpywelllbajolet-hashicorp
authored andcommitted
iso: update basic example documentation with iso block
1 parent 126f352 commit 10f7a57

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.web-docs/components/builder/iso/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,9 @@ source "proxmox-iso" "fedora-kickstart" {
11681168
}
11691169
http_directory = "config"
11701170
insecure_skip_tls_verify = true
1171-
iso_file = "local:iso/Fedora-Server-dvd-x86_64-29-1.2.iso"
1171+
isos {
1172+
iso_file = "local:iso/Fedora-Server-dvd-x86_64-29-1.2.iso"
1173+
}
11721174
network_adapters {
11731175
bridge = "vmbr0"
11741176
model = "virtio"
@@ -1181,7 +1183,6 @@ source "proxmox-iso" "fedora-kickstart" {
11811183
ssh_username = "root"
11821184
template_description = "Fedora 29-1.2, generated on ${timestamp()}"
11831185
template_name = "fedora-29"
1184-
unmount_iso = true
11851186
username = "${var.username}"
11861187
}
11871188
@@ -1224,7 +1225,11 @@ build {
12241225
"pre_enrolled_keys": true,
12251226
"efi_type": "4m"
12261227
},
1227-
"iso_file": "local:iso/Fedora-Server-dvd-x86_64-29-1.2.iso",
1228+
"isos": [
1229+
{
1230+
"iso_file": "local:iso/Fedora-Server-dvd-x86_64-29-1.2.iso"
1231+
}
1232+
],
12281233
"http_directory": "config",
12291234
"boot_wait": "10s",
12301235
"boot_command": [
@@ -1233,7 +1238,6 @@ build {
12331238
"ssh_username": "root",
12341239
"ssh_timeout": "15m",
12351240
"ssh_password": "packer",
1236-
"unmount_iso": true,
12371241
"template_name": "fedora-29",
12381242
"template_description": "Fedora 29-1.2, generated on {{ isotime \"2006-01-02T15:04:05Z\" }}"
12391243
}

docs/builders/iso.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ source "proxmox-iso" "fedora-kickstart" {
168168
}
169169
http_directory = "config"
170170
insecure_skip_tls_verify = true
171-
iso_file = "local:iso/Fedora-Server-dvd-x86_64-29-1.2.iso"
171+
isos {
172+
iso_file = "local:iso/Fedora-Server-dvd-x86_64-29-1.2.iso"
173+
}
172174
network_adapters {
173175
bridge = "vmbr0"
174176
model = "virtio"
@@ -181,7 +183,6 @@ source "proxmox-iso" "fedora-kickstart" {
181183
ssh_username = "root"
182184
template_description = "Fedora 29-1.2, generated on ${timestamp()}"
183185
template_name = "fedora-29"
184-
unmount_iso = true
185186
username = "${var.username}"
186187
}
187188
@@ -224,7 +225,11 @@ build {
224225
"pre_enrolled_keys": true,
225226
"efi_type": "4m"
226227
},
227-
"iso_file": "local:iso/Fedora-Server-dvd-x86_64-29-1.2.iso",
228+
"isos": [
229+
{
230+
"iso_file": "local:iso/Fedora-Server-dvd-x86_64-29-1.2.iso"
231+
}
232+
],
228233
"http_directory": "config",
229234
"boot_wait": "10s",
230235
"boot_command": [
@@ -233,7 +238,6 @@ build {
233238
"ssh_username": "root",
234239
"ssh_timeout": "15m",
235240
"ssh_password": "packer",
236-
"unmount_iso": true,
237241
"template_name": "fedora-29",
238242
"template_description": "Fedora 29-1.2, generated on {{ isotime \"2006-01-02T15:04:05Z\" }}"
239243
}

0 commit comments

Comments
 (0)