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

Fedora CoreOS cannot be used as a source image #191

Closed tesinormed closed 8 months ago

tesinormed commented 8 months ago

Overview

Using fedora-coreos-stable or any Fedora CoreOS as a source image will error out as it cannot find a image in the baked in image projects.

Reproduction

See below for buildfile.

Plugin and Packer version

Plugin version 1.1.2, Packer version 1.9.4

Buildfile

source "googlecompute" "<< NAME >>" {
    ...
    source_image_family = "fedora-coreos-stable"
    ...
}

Operating system and Environment details

Fedora Silverblue, x86_64, inside a toolbox

lbajolet-hashicorp commented 8 months ago

Hi @tesinormed,

Thanks for bringing this up. I can indeed replicate this locally, and the reason why that happens is because the image you're looking for is from the fedora-coreos-cloud project, which is not in the list the plugin supports by default.

I'll open a PR to add it to the list, but seeing how it is implemented in the plugin hints that we should probably do things differently.