Skip to content

Commit aaf70a4

Browse files
authored
Merge pull request #1168 from phaedriel/jvm_options_duplicate
2 parents 961d1c9 + a036bc9 commit aaf70a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manifests/config.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,11 @@
193193
else {
194194
# Add any additional JVM options
195195
$elasticsearch::jvm_options.each |String $jvm_option| {
196+
$split_jvm_option = split($jvm_option, '=')
196197
file_line { "jvm_option_${jvm_option}":
197198
ensure => present,
198199
path => "${elasticsearch::configdir}/jvm.options",
200+
match => $split_jvm_option.length ? { 2 => "^${split_jvm_option[0]}=", default => undef, },
199201
line => $jvm_option,
200202
notify => $elasticsearch::_notify_service,
201203
}

0 commit comments

Comments
 (0)