EBernhardson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/282971
Change subject: Install logstash contrib plugins by default
......................................................................
Install logstash contrib plugins by default
Logstash currently fails to start when the elk role is enabled due to
utilizing logstash-filter-prune which is part of contribs and not in the
standard distribution. In newer version of logstash it would make sense
to create a logstash::plugin resource, but in the current 1.4.x version
contrib is the only possible plugin, so let's just install it by
default.
Change-Id: I94c111bcea73ac2f5fc0e71ba8f3bebe59614313
---
M puppet/modules/logstash/manifests/init.pp
1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant
refs/changes/71/282971/1
diff --git a/puppet/modules/logstash/manifests/init.pp
b/puppet/modules/logstash/manifests/init.pp
index cc7d4e8..50fed5e 100644
--- a/puppet/modules/logstash/manifests/init.pp
+++ b/puppet/modules/logstash/manifests/init.pp
@@ -61,4 +61,11 @@
ensure => absent,
require => Package['logstash'],
}
+
+ exec { 'install logstash contrib plugins':
+ commmand => "/opt/logstash/bin/plugin install contrib",
+ unless => "/usr/bin/test -d /opt/logstash/vendor/logstash/",
+ require => Package['logstash'],
+ notify => Service['logstash'],
+ }
}
--
To view, visit https://gerrit.wikimedia.org/r/282971
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I94c111bcea73ac2f5fc0e71ba8f3bebe59614313
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits