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
This commit is contained in:
K Jonathan Harker 2016-05-12 14:46:34 -07:00
parent 049a6e2b87
commit c55836e555
1 changed files with 4 additions and 0 deletions

View File

@ -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),