mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
add minions.d dir
This commit is contained in:
@@ -45,13 +45,10 @@ commonpkgs:
|
|||||||
- createrepo
|
- createrepo
|
||||||
- python3-lxml
|
- python3-lxml
|
||||||
- python3-packaging
|
- python3-packaging
|
||||||
- python3-watchdog
|
|
||||||
- yum-utils
|
|
||||||
- device-mapper-persistent-data
|
- device-mapper-persistent-data
|
||||||
- lvm2
|
- lvm2
|
||||||
- openssl
|
- openssl
|
||||||
- git
|
- git
|
||||||
- vim-enhanced
|
|
||||||
- python3-docker
|
- python3-docker
|
||||||
{% else %}
|
{% else %}
|
||||||
commonpkgs:
|
commonpkgs:
|
||||||
|
|||||||
@@ -1965,7 +1965,9 @@ repo_sync_local() {
|
|||||||
# Make sure we can get to the sig repo
|
# Make sure we can get to the sig repo
|
||||||
logCmd "curl --retry 5 --retry-delay 60 -A 'gridinstall/$SOVERSION/$OS/$(uname -r)/1' https://sigs.securityonion.net/checkup --output /tmp/checkup"
|
logCmd "curl --retry 5 --retry-delay 60 -A 'gridinstall/$SOVERSION/$OS/$(uname -r)/1' https://sigs.securityonion.net/checkup --output /tmp/checkup"
|
||||||
logCmd "dnf reposync --norepopath -n -g --delete -m -c /root/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/"
|
logCmd "dnf reposync --norepopath -n -g --delete -m -c /root/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/"
|
||||||
|
# Run it again and make sure we got allt he things
|
||||||
|
logCmd "dnf reposync --norepopath -n -g --delete -m -c /root/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/"
|
||||||
|
|
||||||
|
|
||||||
# After the download is complete run createrepo
|
# After the download is complete run createrepo
|
||||||
create_repo
|
create_repo
|
||||||
@@ -2018,6 +2020,7 @@ saltify() {
|
|||||||
else
|
else
|
||||||
# THIS IS A TEMP HACK
|
# THIS IS A TEMP HACK
|
||||||
logCmd "dnf -y install securityonion-salt"
|
logCmd "dnf -y install securityonion-salt"
|
||||||
|
logCmd "mkdir -p /etc/salt/minion.d"
|
||||||
if [[ $waitforstate ]]; then
|
if [[ $waitforstate ]]; then
|
||||||
# Since this is a salt master so let's install it
|
# Since this is a salt master so let's install it
|
||||||
logCmd ""
|
logCmd ""
|
||||||
|
|||||||
Reference in New Issue
Block a user