Closed remuslazar closed 8 years ago
Can you also add documentation inside the README for this new variable, along with a note that this variable only applies to Debian/Ubuntu (not to RedHat/CentOS)?
@geerlingguy to be honest, this was quite a "hack" to get the ES 1.7 version installed. I then created the PR because, despite of the fact that it will fork just for Debian, it's anyway better than having the 1.4 magic string hardcoded..
It will be definitely cooler to use a role variable for the desired version like 1.x, 2.x, latest, 1.5 and so on.
The version is using a major ES version at this point; 2.x as of this writing. I think that's adequate since we're using ES's main repository, and major version changes (e.g. 3.x) will require some role rearchitecture anyways.
@geerlingguy some "legacy projects" might require older versions, so the "last stable" might not be the one we need :) so being able to choose between the "major version" at least would be desirable.
This PR makes the Elasticsearch Version to be installed (only for Debian distros) configurable via the variable "elasticsearch_version".
The default value is 1.4, for backwards compatibility.