This commit is contained in:
Ben Grande 2023-10-18 21:15:17 +00:00
commit d5a47e99fa
No known key found for this signature in database
GPG key ID: 00C64E14F51F9E56
569 changed files with 16873 additions and 0 deletions

13
scripts/setup.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
set -eu
test "$(hostname)" = "dom0" || { echo "Must be run from dom0" >&2; exit 1; }
test "$(id -u)" = "0" || exec sudo "${0}"
group="qusal"
file_roots="/srv/salt/${group}"
## Avoid having extra unwanted files.
rm -rf "${file_roots}"
cp -f minion.d/"${group}".conf /etc/salt/minion.d/
mkdir -p "${file_roots}"
cp -r "${group}"/* "${file_roots}"