aboutsummaryrefslogtreecommitdiff
path: root/deploy_passwords
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-04-20 15:41:54 +0200
committerAlex Auvolat <alex@adnab.me>2022-04-20 15:41:54 +0200
commit6c22f5fdfad8752006c2245b503313973766c31c (patch)
tree4eb8943999a88135adee687aa03fc06a4cf681cf /deploy_passwords
parent226fbabf655656f16ca883c8489a2360abdb8367 (diff)
downloadnixcfg-6c22f5fdfad8752006c2245b503313973766c31c.tar.gz
nixcfg-6c22f5fdfad8752006c2245b503313973766c31c.zip
Add scripts to manage passwords
Diffstat (limited to 'deploy_passwords')
-rwxr-xr-xdeploy_passwords5
1 files changed, 5 insertions, 0 deletions
diff --git a/deploy_passwords b/deploy_passwords
new file mode 100755
index 0000000..37c2143
--- /dev/null
+++ b/deploy_passwords
@@ -0,0 +1,5 @@
+#!/usr/bin/env ./sshtool
+
+write_pass deuxfleurs/cluster/$CLUSTER/passwords /root/deploy_tmp_passwords
+cmd 'chpasswd -e < /root/deploy_tmp_passwords'
+cmd rm /root/deploy_tmp_passwords