This allows declaration of the elasticsearch which is configured manually so
far. We reused the actual production configuration in
/etc/elasticsearch/{elasticsearch.yml,jvm_options} as default.
The following diff configures both for production and staging node the
following:
- /etc/elasticsearch/elasticsearch.yml (overriding the one from the debian package)
- /etc/elasticsearch/jvm.options.d/jvm.options (adding some Xms/Xmx override)
This also fixed a couple of current paper cuts:
- uid/gid creation
- fix the inter-dependency on package/service/apt-config order
- remove a deprecated xpack configuration (since 7.8.0 which is the prod version)
- unmanage the no longer required openjdk-8 dependency (es complained about it) [1]
[1] We'll need to uninstall that jdk from the production esnodes
[2] We'll need to apply the following configuration in production on node at a
time.
Related to T2817