Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P4372
new-es-password.sh
Active
Public
Actions
Authored by
bd808
on Nov 4 2016, 6:45 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Toolforge
Elasticsearch
Subscribers
None
#!/bin/bash
# Ugly script to generate password data
# for the Tool Labs elasticsearch cluster
set
-o nounset
set
-o errexit
USER
=
${
1
:?Missing USER
}
PASS
=
$(
openssl rand -base64
32
)
SHA512
=
$(
printf
$PASS
|
mkpasswd --stdin --method
=
sha-512
)
echo
"
${
1
}
.elasticsearch.ini"
echo
"----"
echo
"[elasticsearch]"
echo
"user=
${
USER
}
"
echo
"password=
${
PASS
}
"
echo
"----"
echo
echo
"
${
1
}
puppet master private (hieradata/labs/tools/common.yaml)"
echo
"----"
echo
"profile::toolforge::elasticsearch::haproxy::elastic_users:"
echo
" - name: '
${
1
}
'"
echo
" password: '
${
SHA512
}
'"
Event Timeline
bd808
created this paste.
Nov 4 2016, 6:45 PM
2016-11-04 18:45:38 (UTC+0)
bd808
edited the content of this paste.
(Show Details)
Nov 4 2016, 9:46 PM
2016-11-04 21:46:16 (UTC+0)
bd808
mentioned this in
T149709: Possible use of tools-lab-elasticsearch cluster
.
Nov 4 2016, 10:00 PM
2016-11-04 22:00:37 (UTC+0)
•
JHedden
edited the content of this paste.
(Show Details)
Apr 15 2020, 7:18 PM
2020-04-15 19:18:13 (UTC+0)
bd808
edited the content of this paste.
(Show Details)
Jun 1 2020, 2:56 AM
2020-06-01 02:56:05 (UTC+0)
Majavah
edited the content of this paste.
(Show Details)
Jan 20 2022, 9:19 AM
2022-01-20 09:19:40 (UTC+0)
Majavah
mentioned this in
T298934: Elasticsearch credential request for spi-tools-dev
.
Log In to Comment