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

Ensure directory for elasticsearch path

Open kfontorbe opened this issue 2 years ago • 1 comments

Hello,

I've found an issue when we changing the elasticsearch.path_data, it don't create the directory associated. I've fixed this with adding ensure directory here :

  file { [$elasticsearch_path_config, $elasticsearch_path_eshome, $elasticsearch_path_data]:
+  ensure  => directory,   
  recurse => true,
  owner   => $elasticsearch_user,
  group   => $elasticsearch_group,
  require => Package[$elasticsearch_package],
}

Wazuh module version : 4.2.5 Puppertserver version : 6.16.1

Could you add it ?

Thanks :blush:

kfontorbe avatar Mar 02 '22 11:03 kfontorbe

hello, kfontorbe thank you very much for your comment and your contribution, we are going to review what you indicate, you can open PR if you wish so we will review it together with our tests.

c-bordon avatar Mar 08 '22 19:03 c-bordon