I'd like to automate my cluster provisionning (ansible). I am stucked on the password setup. How can I set my elastic, kibana and logstash passwords from a script, without prompting? I don't want to use the setup-password auto because I want to decide for my passwords.
setup-password is not meant to be scriptable or used as part of a deployment script. It basically wraps a number of calls to the _password API and you should do the same in your ansible playbook.
@TimV has written some useful instructions here on how to make use of the API and the bootstrap.password that might come in handy
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.