Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F31758171
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
JHedden
Apr 15 2020, 7:18 PM
2020-04-15 19:18:13 (UTC+0)
Size
490 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
#!/bin/sh
# Ugly script to generate password data
# for the Tool Labs elasticsearch cluster
set -e
PASS=$(openssl rand -base64 32)
SHA512=$(printf $PASS | mkpasswd --stdin --method=sha-512)
echo -e "${1} elasticsearch.ini\n----"
echo -e "user=${1} \npassword=${PASS}"
echo -e "----\n"
echo -e "${1} puppet master private (hieradata/labs/tools/common.yaml)\n----"
echo "profile::toolforge::elasticsearch::haproxy::elastic_users:"
echo " - name: '${1}'"
echo " password: '${SHA512}'"
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8383100
Default Alt Text
raw.txt (490 B)
Attached To
Mode
P4372 new-es-password.sh
Attached
Detach File
Event Timeline
Log In to Comment