Skip to content

Commit

Permalink
add tags
Browse files Browse the repository at this point in the history
  • Loading branch information
rgl committed Oct 10, 2023
1 parent 06118b6 commit 243b794
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .web-docs/components/builder/clone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ boot time.
and are limited to the range 100-999999999.
If not given, the next free ID on the cluster will be used.

- `tags` (string) - The tags to set. This is a semicolon separated list. For example,
`debian-12;template`.

- `boot` (string) - Override default boot order. Format example `order=virtio0;ide2;net0`.
Prior to Proxmox 6.2-15 the format was `cdn` (c:CDROM -> d:Disk -> n:Network)

Expand Down
3 changes: 3 additions & 0 deletions .web-docs/components/builder/iso/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ in the image's Cloud-Init settings for provisioning.
and are limited to the range 100-999999999.
If not given, the next free ID on the cluster will be used.

- `tags` (string) - The tags to set. This is a semicolon separated list. For example,
`debian-12;template`.

- `boot` (string) - Override default boot order. Format example `order=virtio0;ide2;net0`.
Prior to Proxmox 6.2-15 the format was `cdn` (c:CDROM -> d:Disk -> n:Network)

Expand Down
2 changes: 2 additions & 0 deletions builder/proxmox/clone/config.hcl2spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions builder/proxmox/common/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ type Config struct {
// If not given, the next free ID on the cluster will be used.
VMID int `mapstructure:"vm_id"`

// The tags to set. This is a semicolon separated list. For example,
// `debian-12;template`.
Tags string `mapstructure:"tags"`

// Override default boot order. Format example `order=virtio0;ide2;net0`.
// Prior to Proxmox 6.2-15 the format was `cdn` (c:CDROM -> d:Disk -> n:Network)
Boot string `mapstructure:"boot"`
Expand Down
2 changes: 2 additions & 0 deletions builder/proxmox/common/config.hcl2spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions builder/proxmox/common/step_start_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func (s *stepStartVM) Run(ctx context.Context, state multistep.StateBag) multist
Name: c.VMName,
Agent: agent,
QemuKVM: &kvm,
Tags: c.Tags,
Boot: c.Boot, // Boot priority, example: "order=virtio0;ide2;net0", virtio0:Disk0 -> ide0:CDROM -> net0:Network
QemuCpu: c.CPUType,
Description: "Packer ephemeral build VM",
Expand Down
2 changes: 2 additions & 0 deletions builder/proxmox/iso/config.hcl2spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions docs-partials/builder/proxmox/common/Config-not-required.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
and are limited to the range 100-999999999.
If not given, the next free ID on the cluster will be used.

- `tags` (string) - The tags to set. This is a semicolon separated list. For example,
`debian-12;template`.

- `boot` (string) - Override default boot order. Format example `order=virtio0;ide2;net0`.
Prior to Proxmox 6.2-15 the format was `cdn` (c:CDROM -> d:Disk -> n:Network)

Expand Down

0 comments on commit 243b794

Please sign in to comment.