puppet-elasticsearch icon indicating copy to clipboard operation
puppet-elasticsearch copied to clipboard

why was log4j2.properties.erb configuration commented ?

Open alexfouche opened this issue 1 year ago • 1 comments

How to reproduce (e.g Puppet code you use)

Set Elasticsearch logging options

    class { 'elasticsearch':
        file_rolling_type             => 'rollingFile',
        rolling_file_max_backup_index => 14,
        rolling_file_max_file_size    => '256MB',

What are you seeing

/etc/elasticsearch/log4j2.properties is not modified

What behaviour did you expect instead

/etc/elasticsearch/log4j2.properties to be modified

Question

Why was templating the log4j2.properties been disabled ? The block is completely commented in manifests/config.pp It seems to come from commit https://github.com/voxpupuli/puppet-elasticsearch/commit/67a07201d2e0837444ddebdbfc0fd3c43ca906eb

Why ?

Currently the Puppet module seems to allow no way to configure Elasticsearch logging

alexfouche avatar Jul 13 '23 06:07 alexfouche

Looks like #1185 tries to bring back managing this file but also not sure why that was removed. This was very unexpected when upgrading and does not appear to break anything when actually using the module. If it was just for tests maybe those should have been reviewed versus breaking/significantly altering how the application is configured....

bmagistro avatar Jul 14 '23 15:07 bmagistro