Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for defining image category #97

Closed
thewelshvader opened this issue Feb 13, 2023 · 5 comments
Closed

Add support for defining image category #97

thewelshvader opened this issue Feb 13, 2023 · 5 comments

Comments

@thewelshvader
Copy link

/kind feature

Ability to define a Prism category key and value for the images in the Packer config. This would enable image placement policies to take effect after the build finishes.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • packer-plugin-nutanix version (use packer plugins installed): packer-plugin-nutanix_v0.3.1_x5.0_linux_amd64
  • Packer version : 1.8.5
  • OS (e.g. from /etc/os-release): RHEL 8.5
@tuxtof
Copy link
Contributor

tuxtof commented Feb 13, 2023

Hi @thewelshvader i merge a commit with the change in master

can you check if it is ok for you

new parameters are

  • image_category_key (string) - Name of the category to assign to the image.
  • image_category_value (string) - Value of the category to assign to the image.

@thewelshvader
Copy link
Author

Hi @tuxtof

Sure I will test it.

Correct me if I'm wrong - I need to build the plugin from the main branch?
And I'm not familiar with Go - do I need to run make build from the same environment I am running Packer in? (RHEL8.5 in my case)

Thanks

@tuxtof
Copy link
Contributor

tuxtof commented Feb 14, 2023

Yes a make dev inside the repo make the job

but if. no urgent i will make a new release soon if you prefer

@thewelshvader
Copy link
Author

Ok thanks, happy to wait for the next release!

@tuxtof
Copy link
Contributor

tuxtof commented Feb 16, 2023

Hello @thewelshvader v0.5.0 was released please give a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants