elastic / elasticsearch

Free and Open, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.41k stars 24.56k forks source link

elasticsearch-reconfigure-node : add "-b" flag for automated installs #90617

Open m-a-leclercq opened 1 year ago

m-a-leclercq commented 1 year ago

Description

Hi team,

Currently rewriting an ansible role for installing / bootstrapping a cluster in the more recent versions of Elasticsearch (8.3+).

Grabbing the initial passwords for the system users is nontrivial from ansible but elasticsearch-reset-password has an easy -b -s flag for a painless way to capture the new password in stdout.

I would like to see the same -b flag added to elasticsearch-reconfigure-node so that I don't have to use the expect module and require pexpect as a dependency to my project to validate the other nodes joining the initial one.

I don't have a complete view of all the cli tools that require user interaction, but if you know of any more that could be used in automation and could use the "-b" flag, they could be added to the list :+1:

Your feedback is highly appreciated.

elasticsearchmachine commented 1 year ago

Pinging @elastic/es-core-infra (Team:Core/Infra)

elasticsearchmachine commented 3 months ago

Pinging @elastic/es-security (Team:Security)