hashicorp / packer-plugin-googlecompute

Packer plugin for Google Compute Builder
https://www.packer.io/docs/builders/googlecompute
Mozilla Public License 2.0
23 stars 51 forks source link

Allow users to configure a VM image with stack type IPV4 or IPV4_IPV6 #133

Closed nkinkade closed 1 year ago

nkinkade commented 1 year ago

Description

GCP now supports dual stack (IPv4 and IPv6) GCE VMs in every available region. In order to be able to create a dual stack VM, one must create the VM with a stack type defined (With gcloud the --stack-type="IPV4_IPV6" flag). We would like to be able to create dual stack images using Packer.

I am happy to take a stab at a PR, if this feature seems useful.

Use Case(s)

Any user wanting to create dual stack VMs using Packer. Many people may not be aware of the current state of IPv6 in GCE, since it was largely unavailable until relatively recently.

Potential configuration

Add a new configuration option, possibly something like stack_type.

Potential References

nkinkade commented 1 year ago

I created this issue before I fully understood how Packer was working. I now see that I can create a dual-stack VM using the base image created by Packer. Sorry for the noise.