mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
10 lines
316 B
Bash
Executable File
10 lines
316 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This script adds pillar and schedule files securely
|
|
local_salt_dir=/opt/so/saltstack/local
|
|
MINION=$1
|
|
|
|
echo "Adding $1"
|
|
cp /tmp/$MINION/pillar/$MINION.sls $local_salt_dir/pillar/minions/
|
|
cp --parents /tmp/$MINION/schedules/* $local_salt_dir/salt/patch/os/schedules/
|
|
rm -rf /tmp/$MINION |