nutanix-cloud-native / packer-plugin-nutanix

Packer Builder for Nutanix AHV
https://developer.hashicorp.com/packer/integrations/nutanix-cloud-native/nutanix
Apache License 2.0
35 stars 19 forks source link

Add option to tell packer not to stop the instance #206

Open jeepingben opened 3 days ago

jeepingben commented 3 days ago

/kind feature

Describe the solution you'd like [I would like to direct packer to not stop the instance I am making when all provisioners are finished This would be helpful in the case of non-interactive ISO installs where there are no provisioners at all and the installer shuts down the instance. ]

Anything else you would like to add: [ My current workaround is to use the local-shell provisioner and run a sleep for as long as I think the install would take.

The AWS EBS-surrogate packer plugin uses disable_stop_instance for this: https://github.com/hashicorp/packer-plugin-amazon/commit/74198bc8840ba8c61912fbfa8371b58fbe476196#diff-f97c70941315748d298b576dd2ad777ca6cee404e93aa143b94097542ebf15aeR26 https://github.com/hashicorp/packer-plugin-amazon/blob/e79e7b817c627e10a3c65612e5ab701932fef424/.web-docs/components/builder/ebs/README.md?plain=1#L561]

Environment: