hype
Jes Olson j3s@c3f.net
Tue, 28 Jun 2022 03:15:47 -0500
2 files changed,
17 insertions(+),
2 deletions(-)
M
hosts/host.example.org
→
hosts/host.example.org
@@ -76,7 +76,10 @@ # ???what have we learned so far???
# files and dirs - zoa wraps that & provides helpers # services and package management - DIY -zoa-file cyberian_authorized_ssh_keys /home/cyberian/.ssh/authorized_keys cyberian:cyberian 0600 +zoa-file cyberian_authorized_ssh_keys \ + /home/cyberian/.ssh/authorized_keys \ + cyberian:cyberian \ + 0600 # here we can see the use of our first "var" - all of the vars in the /vars # dir are automatically applied to the nodes within the files.@@ -88,5 +91,9 @@ #
# besides, it's pretty easy to automate: adduser -D "$operator" || true zoa-directory "/home/$operator/.ssh" "$operator:$operator" 0700 - zoa-file "ssh_keys/$operator" "/home/$operator/.ssh/authorized_keys" cyberian:cyberian 0600 + zoa-file "ssh_keys/$operator" "/home/$operator/.ssh/authorized_keys" "$operator:$operator" 0600 done + +if [ -z "$make_backup_user" ]; then + useradd -S backup_user +fi
A
vars/common
@@ -0,0 +1,8 @@
+# * +want_backup_user=true + +# *.cyberia.club +operators="jes forest zico queerposting sanine" + +# domechild.cyberia.club +weirdo=yes