add minions.d dir

This commit is contained in:
Mike Reeves
2023-02-17 10:40:43 -05:00
parent 405060674c
commit 353b77cd59
2 changed files with 4 additions and 4 deletions

View File

@@ -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:

View File

@@ -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 ""