Artisan Développeur

Qualité, amélioration continue, agilité.

2 options to install elasticsearch plugins with ansible

Little post today, to remember, if you want to install plugins for elasticsearch with ansible (or others automation tool) you need to pass:

[pastacode lang= »bash » manual= »–batch%20–silent » message= » » highlight= » » provider= »manual »/]

According to the –help option:

[pastacode lang= »bash » manual= »Option%20Description%0A——%20———–%0A-E%20%3CKeyValuePair%3E%20Configure%20a%20setting%0A-b%2C%20–batch%20Enable%20batch%20mode%20explicitly%2C%20automatic%20confirmation%20of%0Asecurity%20permission%0A-h%2C%20–help%20show%20help%0A-s%2C%20–silent%20show%20minimal%20output%0A-v%2C%20–verbose%20show%20verbose%20output » message= »help for elasticsearch plugin install » highlight= » » provider= »manual »/]

Here my ansible task:

[pastacode lang= »bash » manual= »%23%20install%20x-pack%20for%20elasticsearch%0A-%20name%3A%20Install%20x-pack%20for%20elasticsearch%0A%20%20command%3A%20bin%2Felasticsearch-plugin%20install%20x-pack%20–silent%20–batch%0A%20%20args%3A%0A%20%20%20%20%20%20chdir%3A%20%2Fusr%2Fshare%2Felasticsearch » message= »ansible task install x-pack elasticsearch » highlight= » » provider= »manual »/]

And to install x-pack in Kibana:

[pastacode lang= »bash » manual= »%23%20install%20x-pack%20for%20kibana%0A-%20name%3A%20Install%20x-pack%20for%20kibana%0A%20%20command%3A%20bin%2Fkibana-plugin%20install%20x-pack%20–silent%0A%20%20args%3A%0A%20%20%20%20%20%20chdir%3A%20%2Fusr%2Fshare%2Fkibana » message= » » highlight= » » provider= »manual »/]

 

As always improvements en comments are welcome 🙂

Leave a reply

Your email address will not be published.

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.