Update packaging to use /usr/share/logstash

Update after-install scripts

Use /usr/lib/logstash instead of /opt/logstash

More revisions.

Using `/usr/share/logstash` instead of `/usr/lib/logstash`

Track these new files

More work in progress.

Proper arg parsing obtained

WIP: Use jvm.options like ES

Remove facter dependency

Due to an update from @jordansissel on pleaserun, facter is no longer necessary

Revert Gemfile to proper version

Latest work in progress.

I added a simple test to logstash.lib.sh to catch empty strings in java options.

Added `startup.options`, and touched up `jvm.options`

Edited the package scripts to make things play nice with new paths.

Tweaked `system-install` to allow users to provide their own `startup.options` file.

Patch up merge failure

Changes to work with the new logstash.yml

Add fpm dependency (build fails without it)

Fix missing gems in Gemfile

Don't know how these got lost

Use /etc/logstash for configuration in packages

Update the instructions/documentation for...

...startup.options

Merging proposed changes

Remove mustache and clamp

They're covered by pleaserun anyway

Prune config dir from /usr/share/logstash...

...but only when using RPM/DEB packages
This commit is contained in:
Aaron Mildenstein 2016-05-09 09:55:03 -06:00
parent be9bac9ec5
commit 6c886845e6
25 changed files with 563 additions and 676 deletions

View file

@ -5,6 +5,6 @@ fi
# create logstash user
if ! getent passwd logstash >/dev/null; then
useradd -r -g logstash -d /opt/logstash \
useradd -r -g logstash -d /usr/share/logstash \
-s /sbin/nologin -c "logstash" logstash
fi