Skip to content

Commit

Permalink
Merge pull request #437 from bastelfreak/merge
Browse files Browse the repository at this point in the history
replace legacy `merge()` with native puppet code
  • Loading branch information
bastelfreak committed Mar 26, 2024
2 parents 8b1055e + dea63d6 commit cbfc1c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
'SERVICE_DESCRIPTION' => '"logstash"',
}

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

0 comments on commit cbfc1c7

Please sign in to comment.