hashicorp / packer

Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.
http://www.packer.io
Other
15.11k stars 3.33k forks source link

oracle-oci builder not recognized after packer version 1.8.4-1 #12170

Closed exolain closed 1 year ago

exolain commented 1 year ago

Hi All,

On packer version 1.8.4-1 and 1.8.5-1 we are getting the error: error initializing builder 'oracle-oci': Unknown builder oracle-oci

After removing the latest version and using the 1.8.3-1 it works again.

nywilken commented 1 year ago

Hi @exolain thanks for reaching out. The Oracle OCI builder is no longer being bundled with Packer. It was removed in Packer 1.8.4 - CHANGELOG

In order to use the external plugin you can install it using either packer init or the packer plugins install command.

If you are using HCL templates the preferred method would be to use the packer init with the required_plugins block. Adding the following to the top of your HCL template file will be enough for Packer init to know what version of the builder to install.

packer {
    required_plugins {
      oracle = {
        source = "github.com/hashicorp/oracle"
        version = ">= 1.0.3"
      }
    }
}

If you are using JSON templates, which doesn't support the required plugins block, you can install using the plugins command.

packer plugins install github.com/hashicorp/oracle

I'm going to close this issue since it is not a bug. But if you run into problems installing the external plugin please feel free to ping the thread and I will gladly reopen. Cheers!

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.