aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/tpc.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/tpc.md b/docs/tpc.md
index 5266b83..de3203a 100644
--- a/docs/tpc.md
+++ b/docs/tpc.md
@@ -78,6 +78,12 @@ generator like this:
For `passwd(5)` and `shadow(5)` hashed passphrases, use something like this:
+ mkpasswd -m sha-512 | \
+ hydra $HYDRA eyaml $VOLNAME encrypt -q -o block --stdin -l some::random:password >> \
+ $CONFIG_FOLDER/puppet/config/secrets/node/$VOLNAME.$DOMAIN.yaml
+
+Or this, for a random passphrase:
+
head -c ${1:-20} /dev/urandom | base64 | \
mkpasswd -m sha-512 --stdin | \
hydra $HYDRA eyaml $VOLNAME encrypt -q -o block --stdin -l some::random:password >> \