How to add builder plugin?

How to add builder plugin?

I have:

  1. OS Debian
  2. Download file “packer” to folder /opt/packer
  3. Set up path PATH=/opt/packer

How add builder plugin ( for instance DigitalOcean Builder ) ?

Create a my_box_config.pkr.hcl file.

In it, put your packer, variable(s) (optional),
locals (optional), source and build configuration options.
Then run packer init to ad the builder plugin
and packer build to run the thing.