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

Create new output vars #369

Open
jsloan117 opened this issue Feb 4, 2024 · 0 comments
Open

Create new output vars #369

jsloan117 opened this issue Feb 4, 2024 · 0 comments

Comments

@jsloan117
Copy link

Description

Add/create output variables that contain the name of the resources packer spun up. If packer spun up a VM/NIC/HDD then it'd look something like the below still following the "Randomized" logic already in place.

e.g.

build.vm_name=pkrvm*
build.nic_name=pkrni*
build.osdisk_name=pkros*
etc
etc

Use Case(s)

The use case I've had in mind is if packer fails or the pipeline run is canceled it leaves behind resources it provisioned.

If I knew or could know the name of the resources it spun up I could write a simple shell script to be executed on packer failure to ensure the resources it spun up are indeed gone.

Potential configuration

NA

Potential References

NA

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

No branches or pull requests

1 participant