Closed bbros-dev closed 3 years ago
Here the issue is two fold:
required_plugins
stanza is required not just to use packer init
but also required to use packer build
.This is not a plugin error, it's Packer error. That Packer not able to find upcloud
plugin.
You wrote:
$ packer build ....
I guess that for a build you used not init.pkr.hcl
that you used for packer init
. And that config was missing:
packer {
required_plugins {
upcloud = {
version = ">=v1.0.0"
source = "github.com/UpCloudLtd/upcloud"
}
}
}
Am I right?
Updated readme.
There is a whole shmozzle around plugins. it impacts what isntructions you give. Digging up the Packer issue .... #11028 and #11020
If you carefully review what is said by upstream in those issues, and in the PR, I think you'll agree the whole set of upcloud plugin upgrade instructions needs to be more careful revisited.
Using a HCL2 definition and Packer v1.7.2, after successful
packer init init.pkr.hcl
for the upcloud plugin:UpCloud is not a known builder?