Skip to content

Commit dea63d6

Browse files
committed
replace legacy merge() with native puppet code
1 parent 8b1055e commit dea63d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manifests/service.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
'SERVICE_DESCRIPTION' => '"logstash"',
3131
}
3232

33-
$settings = merge($default_settings, $logstash::settings)
34-
$startup_options = merge($default_startup_options, $logstash::startup_options)
33+
$settings = $default_settings + $logstash::settings
34+
$startup_options = $default_startup_options + $logstash::startup_options
3535
$jvm_options = $logstash::jvm_options
3636
$jvm_options_defaults = $logstash::jvm_options_defaults
3737
$pipelines = $logstash::pipelines
@@ -140,7 +140,7 @@
140140
}
141141
#Older Amazon Linux AMIs has its release based on the year
142142
#it came out (2010 and up); the provider needed to be set explicitly;
143-
#New Amazon Linux 2 AMIs has the release set to 2, Puppet can handle it
143+
#New Amazon Linux 2 AMIs has the release set to 2, Puppet can handle it
144144
elsif($os =~ /amazon/ and versioncmp($release, '2000') > 0) {
145145
$service_provider = 'upstart'
146146
}

0 commit comments

Comments
 (0)