Merge pull request #13853 from Security-Onion-Solutions/agcr

install createrepo for airgap
This commit is contained in:
Josh Patterson
2024-10-23 14:21:26 -04:00
committed by GitHub
3 changed files with 8 additions and 3 deletions

View File

@@ -45,6 +45,12 @@ yara_log_dir:
- user
- group
{% if GLOBALS.os_family == 'RedHat' %}
install_createrepo:
pkg.installed:
- name: createrepo_c
{% endif %}
repo_conf_dir:
file.directory:
- name: /opt/so/conf/reposync

View File

@@ -931,7 +931,7 @@ update_airgap_repo() {
echo "Syncing new updates to /nsm/repo"
rsync -av $AGREPO/* /nsm/repo/
echo "Creating repo"
dnf -y install yum-utils createrepo
dnf -y install yum-utils createrepo_c
createrepo /nsm/repo
}

View File

@@ -803,7 +803,7 @@ create_manager_pillars() {
create_repo() {
title "Create the repo directory"
logCmd "dnf -y install yum-utils createrepo"
logCmd "dnf -y install yum-utils createrepo_c"
logCmd "createrepo /nsm/repo"
}
@@ -1828,7 +1828,6 @@ repo_sync_local() {
# After the download is complete run createrepo
create_repo
fi
else
# Add the proper repos for unsupported stuff
echo "Adding Repos"