Skip to content

Commit

Permalink
Fix docs for environment param on plugin type
Browse files Browse the repository at this point in the history
Relates: 381
  • Loading branch information
ninaspitfire committed Dec 5, 2018
1 parent 263ce7a commit 4f06ff1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ logstash::plugin { 'x-pack':
### Controling the environment for the `logstash-plugin` command
``` puppet
logstash::plugin { 'logstash-input-websocket':
environment => 'LS_JAVA_OPTS="-Xms1g -Xmx1g"',
environment => 'LS_JAVA_OPTS=-Xms1g -Xmx1g',
}
```

Expand Down
7 changes: 2 additions & 5 deletions Vagrantfile.d/manifests/site.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
path => '/tmp/pipeline_one.conf',
}

logstash::plugin { 'logstash-input-mysql': }

$hiera_pluginlist = lookup({name => 'logstash::pluginlist', default_value => undef, merge => deep})
if $hiera_pluginlist {
create_resources('logstash::plugin', $hiera_pluginlist)
logstash::plugin { 'logstash-input-mysql':
environment => ['LS_JAVA_OPTS=-Xms1g -Xmx1g']
}
2 changes: 1 addition & 1 deletion manifests/plugin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#
# @example Install a plugin, overriding JVM options via the environment.
# logstash::plugin { 'logstash-input-jmx':
# environment => ['LS_JAVA_OPTS="-Xms1g -Xmx1g"']
# environment => ['LS_JAVA_OPTS=-Xms1g -Xmx1g']
# }
#
# @param ensure [String] Install or remove with `present` or `absent`.
Expand Down

0 comments on commit 4f06ff1

Please sign in to comment.