NETWAYS / ansible-collection-elasticstack

A collection to install and manage the Elastic Stack
GNU General Public License v3.0
9 stars 8 forks source link

Enhancement : Add Variable for Version(s) which should be installed #175

Closed frankhetterich closed 1 year ago

frankhetterich commented 1 year ago

Currently the collection is always installing the latest versions of the elastic stack But sometimes this is not wanted, for example when adding a new node to an existing ES Cluster without updating the whole cluster.

It would be very useful to have the versions configurable via variables

martialblog commented 1 year ago

Hi,

there is a elasticstack_version variable to define the version. See https://github.com/NETWAYS/ansible-collection-elasticstack#usage

frankhetterich commented 1 year ago

Hello, thank you for pointing this out. The paragraph is unfortunately badly formatted, so we missed this variable. But this variable is defining the version for the whole stack. From our point of view it would be helpful to have such a variable for every software component. For example, the you can install a different version of a software component (e.g. because of a bug).

martialblog commented 1 year ago

Due to the way Ansible variables are scoped, this should be already possible. E.g.:

roles:
   - role: netways.elasticstack.kibana
     vars:
        elasticstack_version: 1.2.3
   - role: netways.elasticstack.logstash
     vars:
        elasticstack_version: 2.3.4
martialblog commented 1 year ago

But yeah, maybe I will have a look at the documentation to see what can be improved. And this example should be included.