Open bilsch opened 6 years ago
Thanks for the report, @bilsch. Agreed that the module shouldn't trigger restarts on user/role changes since Elasticsearch will watch for file updates anyway.
The source for this is coming from this resource in instance.pp
:
The change made in 6.3 to recursively copy in /etc/elasticsearch
into instance directories detects changes to x-pack users/roles files and thus percolates the resource change to $notify_service
.
Bug description
I'm working on upgrading to the mainstream 6.3 puppet module from our fork. In our fork we had allowed for the role and user adds to not trigger a restart given elasticsearch will simply poll / re-open the file.
I am not sure if this is related specifically to shield or if it also applies to the x-pack ( will test that when I get there - later this week )
manifest snippet:
In this case I'm simply changing the value in roles for a user ( drop/add the first char ). The only way I could make it not restart elasticsearch service was to set the restart_config_change to false which is not ideal IMO.
Feature Description
Please allow for the users and roles files to change without restarting. Thinking subscribe the service to the jvm options and elasticsearch.yml, plugin installs etc explicitly. Not sure exactly where in the manifest the notify/subscribe is happening.