From 53eef5fef7fc5ad0307701a09c1cc085d8131152 Mon Sep 17 00:00:00 2001 From: Vincent SELLIER <vincent.sellier@softwareheritage.org> Date: Thu, 18 Nov 2021 18:31:10 +0100 Subject: [PATCH] logstash: puppetize the main logstash configuration file Add the `pipeline.ecs_compatibility` property compared to the manual version existing in the server Related to T3705 --- site-modules/profile/files/logstash/logstash.yml | 7 +++++++ site-modules/profile/manifests/logstash.pp | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 site-modules/profile/files/logstash/logstash.yml diff --git a/site-modules/profile/files/logstash/logstash.yml b/site-modules/profile/files/logstash/logstash.yml new file mode 100644 index 000000000..3802eee77 --- /dev/null +++ b/site-modules/profile/files/logstash/logstash.yml @@ -0,0 +1,7 @@ +# +# File managed by puppet (profile::logstash). All modifications will be lost. + +path.data: /var/lib/logstash +path.logs: /var/log/logstash + +pipeline.ecs_compatibility: disabled diff --git a/site-modules/profile/manifests/logstash.pp b/site-modules/profile/manifests/logstash.pp index 8550df5f7..6f248dc88 100644 --- a/site-modules/profile/manifests/logstash.pp +++ b/site-modules/profile/manifests/logstash.pp @@ -40,6 +40,13 @@ class profile::logstash { notify => Service['logstash'], } + file { '/etc/logstash/logstash.yml': + ensure => 'file', + source => 'puppet:///modules/profile/logstash/logstash.yml', + require => Package['logstash'], + notify => Service['logstash'], + } + service { 'logstash': ensure => running, enable => true, -- GitLab