This commit is contained in:
Oliver
2025-09-26 16:27:40 -03:00
parent ac8f70d368
commit bb271b8d71
15 changed files with 199 additions and 48 deletions

View File

@@ -5,6 +5,8 @@ if [ "$#" -ne 2 ]; then
exit 1
fi
host_vars_dir="/app/host_vars"
keys=(NEBULA_CA API_KEY HOSTNAME NEBULA_CRT NEBULA_KEY SSH_PRIVATE SSH_PUBLIC)
NEBULA_CA=$(<"$host_vars_dir/ca.crt")
@@ -14,8 +16,6 @@ remotefile="$2"
remotetmp_base="/var/tmp/4server"
while read -r host; do
echo "Processing host: $host"
host_env_file="$host_vars_dir/$host/$host.env"
if [ ! -f "$host_env_file" ]; then