mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-20 16:03:06 +01:00
Merge pull request #12405 from Security-Onion-Solutions/repochange
Manage the repo files
This commit is contained in:
2
salt/manager/files/mirror.txt
Normal file
2
salt/manager/files/mirror.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
https://repo.securityonion.net/file/so-repo/prod/2.4/oracle/9
|
||||
https://repo-alt.securityonion.net/prod/2.4/oracle/9
|
||||
13
salt/manager/files/repodownload.conf
Normal file
13
salt/manager/files/repodownload.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
[main]
|
||||
gpgcheck=1
|
||||
installonly_limit=3
|
||||
clean_requirements_on_remove=True
|
||||
best=True
|
||||
skip_if_unavailable=False
|
||||
cachedir=/opt/so/conf/reposync/cache
|
||||
keepcache=0
|
||||
[securityonionsync]
|
||||
name=Security Onion Repo repo
|
||||
mirrorlist=file:///opt/so/conf/reposync/mirror.txt
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
@@ -75,6 +75,20 @@ yara_update_scripts:
|
||||
- defaults:
|
||||
EXCLUDEDRULES: {{ STRELKAMERGED.rules.excluded }}
|
||||
|
||||
so-repo-file:
|
||||
file.managed:
|
||||
- name: /opt/so/conf/reposync/repodownload.conf
|
||||
- source: salt://manager/files/repodownload.conf
|
||||
- user: socore
|
||||
- group: socore
|
||||
|
||||
so-repo-mirrorlist:
|
||||
file.managed:
|
||||
- name: /opt/so/conf/reposync/mirror.txt
|
||||
- source: salt://manager/files/mirror.txt
|
||||
- user: socore
|
||||
- group: socore
|
||||
|
||||
so-repo-sync:
|
||||
{% if MANAGERMERGED.reposync.enabled %}
|
||||
cron.present:
|
||||
|
||||
Reference in New Issue
Block a user