Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .web-docs/components/builder/iso/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,21 @@ In HCL2:
your floppy disk includes drivers or if you just want to organize it's
contents as a hierarchy. Wildcard characters (\*, ?, and \[\]) are allowed.

- `floppy_content` (map[string]string) - Key/Values to add to the floppy disk. The keys represent the paths, and
the values contents. It can be used alongside `floppy_files` or
`floppy_dirs`, which is useful to add large files without loading them
into memory. If any paths are specified by both, the contents in
`floppy_content` will take precedence.

HCL Example:

```hcl
floppy_content = {
"meta-data" = jsonencode(local.instance_data)
"user-data" = templatefile("user-data", { packages = ["nginx"] })
}
```

- `floppy_label` (string) - The label to use for the floppy disk that
is attached when the VM is booted. This is most useful for cloud-init,
Kickstart or other early initialization tools, which can benefit from labelled floppy disks.
Expand Down
15 changes: 15 additions & 0 deletions .web-docs/components/builder/pvm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,21 @@ can also be supplied to override the typical auto-generated key:
your floppy disk includes drivers or if you just want to organize it's
contents as a hierarchy. Wildcard characters (\*, ?, and \[\]) are allowed.

- `floppy_content` (map[string]string) - Key/Values to add to the floppy disk. The keys represent the paths, and
the values contents. It can be used alongside `floppy_files` or
`floppy_dirs`, which is useful to add large files without loading them
into memory. If any paths are specified by both, the contents in
`floppy_content` will take precedence.

HCL Example:

```hcl
floppy_content = {
"meta-data" = jsonencode(local.instance_data)
"user-data" = templatefile("user-data", { packages = ["nginx"] })
}
```

- `floppy_label` (string) - The label to use for the floppy disk that
is attached when the VM is booted. This is most useful for cloud-init,
Kickstart or other early initialization tools, which can benefit from labelled floppy disks.
Expand Down
1 change: 1 addition & 0 deletions builder/parallels/iso/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook)
Files: b.config.FloppyConfig.FloppyFiles,
Directories: b.config.FloppyConfig.FloppyDirectories,
Label: b.config.FloppyConfig.FloppyLabel,
Content: b.config.FloppyConfig.FloppyContent,
},
&commonsteps.StepCreateCD{
Files: b.config.CDConfig.CDFiles,
Expand Down
1 change: 1 addition & 0 deletions builder/parallels/pvm/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook)
Files: b.config.FloppyConfig.FloppyFiles,
Directories: b.config.FloppyConfig.FloppyDirectories,
Label: b.config.FloppyConfig.FloppyLabel,
Content: b.config.FloppyConfig.FloppyContent,
},
&commonsteps.StepCreateCD{
Files: b.config.CDConfig.CDFiles,
Expand Down
15 changes: 15 additions & 0 deletions docs/builders/iso.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,21 @@ can also be supplied to override the typical auto-generated key:
your floppy disk includes drivers or if you just want to organize it's
contents as a hierarchy. Wildcard characters (\*, ?, and \[\]) are allowed.

- `floppy_content` (map[string]string) - Key/Values to add to the floppy disk. The keys represent the paths, and
the values contents. It can be used alongside `floppy_files` or
`floppy_dirs`, which is useful to add large files without loading them
into memory. If any paths are specified by both, the contents in
`floppy_content` will take precedence.

HCL Example:

```hcl
floppy_content = {
"meta-data" = jsonencode(local.instance_data)
"user-data" = templatefile("user-data", { packages = ["nginx"] })
}
```

- `floppy_label` (string) - The label to use for the floppy disk that
is attached when the VM is booted. This is most useful for cloud-init,
Kickstart or other early initialization tools, which can benefit from labelled floppy disks.
Expand Down
15 changes: 15 additions & 0 deletions docs/builders/pvm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,21 @@ can also be supplied to override the typical auto-generated key:
your floppy disk includes drivers or if you just want to organize it's
contents as a hierarchy. Wildcard characters (\*, ?, and \[\]) are allowed.

- `floppy_content` (map[string]string) - Key/Values to add to the floppy disk. The keys represent the paths, and
the values contents. It can be used alongside `floppy_files` or
`floppy_dirs`, which is useful to add large files without loading them
into memory. If any paths are specified by both, the contents in
`floppy_content` will take precedence.

HCL Example:

```hcl
floppy_content = {
"meta-data" = jsonencode(local.instance_data)
"user-data" = templatefile("user-data", { packages = ["nginx"] })
}
```

- `floppy_label` (string) - The label to use for the floppy disk that
is attached when the VM is booted. This is most useful for cloud-init,
Kickstart or other early initialization tools, which can benefit from labelled floppy disks.
Expand Down