Switch onlyif to unless

We want unless not onlyif so we actually run the install command

Change-Id: I7ae6b05e38e2234b51f6263134a77d305fa46648
This commit is contained in:
Matthew Treinish 2016-09-21 08:18:25 -04:00
parent 616156f9a1
commit ce51abae9c
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class logstash::indexer (
exec {'install_mqtt_plugin':
command => '/opt/logstash/bin/plugin install logstash-output-mqtt',
before => Service['logstash'],
onlyif => '/opt/logstash/bin/plugin list logstash-output-mqtt',
unless => '/opt/logstash/bin/plugin list logstash-output-mqtt',
}
file { '/etc/logstash/mqtt-root-CA.pem.crt':