Plugin install via package manager

Hi,

I have the requirement that everything must be installed via the Linux distribution package manager. I need to install a couple of Logstash plugins. I'm looking for guidance on how to best install the plugins via the package manager.

I see 2 general options.

  1. Put the gem files in the package, and call logstash-plugin install / uninstall in the package scripts.

Pro: uses the "native" Logstash plugin management
Con: the installed plugin files are not owned by the package

  1. Put the installed plugin files (vendor/local_gems/*) in the package and modify the Gemfile in the package install / uninstall scripts.

Pro: the installed plugin files are owned by the package
Con: bypass the "native" Logstash plugin management, i.e., makes assumptions about the plugin file layout and configuration that may not always be true

Thoughts?

Thanks,
Scott