mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +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:
|
- defaults:
|
||||||
EXCLUDEDRULES: {{ STRELKAMERGED.rules.excluded }}
|
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:
|
so-repo-sync:
|
||||||
{% if MANAGERMERGED.reposync.enabled %}
|
{% if MANAGERMERGED.reposync.enabled %}
|
||||||
cron.present:
|
cron.present:
|
||||||
|
|||||||
@@ -1811,8 +1811,8 @@ repo_sync_local() {
|
|||||||
info "Adding Repo Download Configuration"
|
info "Adding Repo Download Configuration"
|
||||||
mkdir -p /nsm/repo
|
mkdir -p /nsm/repo
|
||||||
mkdir -p /opt/so/conf/reposync/cache
|
mkdir -p /opt/so/conf/reposync/cache
|
||||||
echo "https://repo.securityonion.net/file/so-repo/prod/2.4/oracle/9" > /opt/so/conf/reposync/mirror.txt
|
echo "https://repo.securityonion.net/file/so-repo/prod/2.4/oracle/9.3" > /opt/so/conf/reposync/mirror.txt
|
||||||
echo "https://so-repo-east.s3.us-east-005.backblazeb2.com/prod/2.4/oracle/9" >> /opt/so/conf/reposync/mirror.txt
|
echo "https://repo-alt.securityonion.net/prod/2.4/oracle/9.3" >> /opt/so/conf/reposync/mirror.txt
|
||||||
echo "[main]" > /opt/so/conf/reposync/repodownload.conf
|
echo "[main]" > /opt/so/conf/reposync/repodownload.conf
|
||||||
echo "gpgcheck=1" >> /opt/so/conf/reposync/repodownload.conf
|
echo "gpgcheck=1" >> /opt/so/conf/reposync/repodownload.conf
|
||||||
echo "installonly_limit=3" >> /opt/so/conf/reposync/repodownload.conf
|
echo "installonly_limit=3" >> /opt/so/conf/reposync/repodownload.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user