small pixel drawing of a pufferfish zoa

hype
Jes Olson j3s@c3f.net
Tue, 28 Jun 2022 03:15:47 -0500
commit

eb8b73776f227a36f0d82e0b1ddb6c64cd410696

parent

7c8ca76f3cf4ddd179e6ada937ed4b1e46f7f111

2 files changed, 17 insertions(+), 2 deletions(-)

jump to
M hosts/host.example.orghosts/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