From c55836e555954076c80e0c696c72e9809e4d5375 Mon Sep 17 00:00:00 2001 From: K Jonathan Harker Date: Thu, 12 May 2016 14:46:34 -0700 Subject: [PATCH] Remove old config when switching to split configs When we switch from a single config to split configs, make sure the old config is removed. Leaving it in place prevents logstash from starting, since we have multiple inputs attempting to listen on the same port. Change-Id: I12e9da295e892ec70bcd9717fbdc0526b0822b86 --- manifests/indexer.pp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/manifests/indexer.pp b/manifests/indexer.pp index 7627e6d..728b9e2 100644 --- a/manifests/indexer.pp +++ b/manifests/indexer.pp @@ -48,6 +48,10 @@ class logstash::indexer ( notify => Service['logstash'], } } else { + file { '/etc/logstash/conf.d/indexer.conf': + ensure => absent, + } + file { '/etc/logstash/conf.d/00-input.conf': ensure => present, content => template($input_template),