jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
BryanDavis: Looks good to me, approved
jenkins-bot: Verified
diff --git a/puppet/modules/logstash/manifests/init.pp
b/puppet/modules/logstash/manifests/init.pp
index cc7d4e8..0e30ec2 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':
+ command => '/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: merged
Gerrit-Change-Id: I94c111bcea73ac2f5fc0e71ba8f3bebe59614313
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: Dduvall <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits