Hello all,
I'm using the puppet module to manage elasticsearch (https://forge.puppet.com/elastic/elasticsearch) and x-pack. However I can't see how to reset the default x-pack user (elastic/kibana/logstash_system) passwords. You can't use elasticsearch::user as that adds the user to the x-pack/users file and as the elastic/kibana/logstash_system users are reserved users this fails.
Thank you.
I'm not really familiar with the Puppet module, but I assume you can run a script from Puppet, so you can do it via cURL request:
curl -k -XPUT --basic "$ESURL/_xpack/security/user/elastic/_password?pretty" -H 'Content-Type: application/json' -d'
{ "password": "changeit" }'
where $ESURL is the URL with the basic auth details added, something like this username:password@localhost:9200
Yep that was pretty much where I was (ie a curl command via exec). Just was hoping for a better way that I had missed. Thanks for the reply.