hashicorp / hashicorp/packer-plugin-lxd

LXD supports using --profile multiple times, but the plugin does not

Open
#67 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
14
Forks
20
PR merge metrics
No merged PRs in 30d

Description

#### Description

LXD supports using --profile multiple times:
`lxc launch --profile --profile ...`

The plugin does, however, only support a single profile given as a string.

#### References

- https://linuxcontainers.org/lxd/docs/master/profiles/#apply-a-profile-to-an-instance
- https://github.com/hashicorp/packer-plugin-lxd/blob/main/builder/lxd/config.go#L33
- https://github.com/hashicorp/packer-plugin-lxd/blob/main/builder/lxd/step_lxd_launch.go#L22

Contributor guide

Open the contributing guide

Research direction

Start with builder/lxd/config.go and builder/lxd/step_lxd_launch.go, then trace how the profile value reaches the launch command. Update the configuration and launch handling so multiple --profile values are supported, and verify that each supplied profile is passed to LXD.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
devops
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.