This repository was archived by the owner on Jun 24, 2022. It is now read-only.
File tree 1 file changed +27
-2
lines changed
1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ $ bin/elasticsearch-certutil cert --ca ./my-ca.p12 --out ./my-keystore.p12 --pas
68
68
xpack.security.authc.realms.file.file1.order : 0
69
69
xpack.security.authc.realms.native.native1.order : 1
70
70
es_heap_size : 1g
71
- es_api_basic_auth_username : elastic
72
- es_api_basic_auth_password : changeme
71
+ es_api_basic_auth_username : " elastic" # This is the default user created by the installation of elasticsearch
72
+ es_api_basic_auth_password : " changeme" # This is the default password created by the installation of elasticsearch
73
73
es_enable_http_ssl : true
74
74
es_enable_transport_ssl : true
75
75
es_ssl_keystore : " files/certs/my-keystore.p12"
@@ -78,3 +78,28 @@ $ bin/elasticsearch-certutil cert --ca ./my-ca.p12 --out ./my-keystore.p12 --pas
78
78
es_ssl_truststore_password : " truststore_password"
79
79
es_validate_certs : no
80
80
` ` `
81
+
82
+ ## Changing the default password of elastic user
83
+
84
+ To change the default password of user elastic:
85
+
86
+ * Add this line to your playbook:
87
+
88
+ ` ` `
89
+ vars :
90
+ es_api_basic_auth_username : " elastic"
91
+ es_api_basic_auth_password : " changeme"
92
+ es_users :
93
+ native :
94
+ elastic :
95
+ password : " <new password>"
96
+ ` ` `
97
+
98
+ * Deploy your playbook
99
+ * Update your playbook with:
100
+
101
+ ` ` `
102
+ vars :
103
+ es_api_basic_auth_username : " elastic"
104
+ es_api_basic_auth_password : " <new password>"
105
+ ` ` `
You can’t perform that action at this time.
0 commit comments