mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 02:02:50 +01:00
Saltify it up
This commit is contained in:
@@ -7,11 +7,6 @@
|
|||||||
NOROOT=1
|
NOROOT=1
|
||||||
. /usr/sbin/so-common
|
. /usr/sbin/so-common
|
||||||
|
|
||||||
if [ ! -f /root/repodownload.conf ]; then
|
|
||||||
echo "This script should only run on the manager."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
set_version
|
set_version
|
||||||
set_os
|
set_os
|
||||||
salt_minion_count
|
salt_minion_count
|
||||||
@@ -34,6 +34,14 @@ repo_dir:
|
|||||||
- user
|
- user
|
||||||
- group
|
- group
|
||||||
|
|
||||||
|
repo_sync_script:
|
||||||
|
file.managed:
|
||||||
|
- name: /usr/sbin/so-repo-sync
|
||||||
|
- source: salt://manager/files/so-repo-sync
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- mode: 755
|
||||||
|
|
||||||
reposync_cron:
|
reposync_cron:
|
||||||
{% if MANAGERMERGED.reposync.enabled %}
|
{% if MANAGERMERGED.reposync.enabled %}
|
||||||
cron.present:
|
cron.present:
|
||||||
|
|||||||
Reference in New Issue
Block a user