-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add code for automatic updates #250
Conversation
Adding playbook contributed by @xtruthx I have to admit, I kept this playbook for waaaaay too long. @xtruthx sent it to me a long while back and I always planned to integrate it into the codebase of this collection. Now I had to face that I took too long and so I'm putting it up publicly so we can work on integration as a common effort. I left the playbook "as is". It stems from a different project so variable names etc. don't match. We need to fix them first. Also I'm not sure if we should really add it as a playbook or maybe better make it a task file in a role. fixes #216
Actually im working in the restructuring PR on it to integrate it. The variables need to be adapt and needs to be modified so that it can handle rpm and deb based systems. It should not be a part somewhere! It belongs into the role for elasticsearch and should be usable by a flag/tag/bolean variable whatever. I also will integrate to integrate a better maintenance for elasticsearch configuration. |
I missed the notes that came with the script (translated by yours truly):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot really comment on the technical aspect of elasticsearch.
But from the ansible perspective everything looks good to me.
As I mentioned use some os_family information for os specific tasks, just to avoid confusion.
…ction-elasticstack into feature/update-216
Adding playbook contributed by @xtruthx
I have to admit, I kept this playbook for waaaaay too long. @xtruthx sent it to me a long while back and I always planned to integrate it into the codebase of this collection.
Now I had to face that I took too long and so I put it up publicly. Now I worked it over so that it will fit into the
elasticsearch
role just well.This PR also introduces a new role where all "global" variables can be found. This will help determining the correct version of a package to install. Some tasks that were repeated in every role get moved into this role called
elasticstack
to streamline execution.This PR now reads the current version of Elasticsearch installed on the CA host and uses it as new installation target for all further installations. This not only helps with upgrading, it will also make sure that you won't have a version mismatch if you install components after the initial install.
Special thanks to @hryamzik for the workaround to run a task file like with
serial: 1
. Found in ansible/ansible#12170 (comment)Very special thanks to CID GmbH for sponsoring parts of the the development of this PR.
Things that still need to be done:
green
oryellow
while a node is brokenfixes #216
fixes #286
fixes #236
fixes #205