Initial cut for Artifact Registry

This commit is contained in:
Josh Brower
2023-05-02 14:17:59 -04:00
parent 8459054ff8
commit 544fa824ea
8 changed files with 63 additions and 0 deletions

View File

@@ -962,6 +962,17 @@ detect_os() {
}
download_elastic_agent_artifacts() {
#TODO - ISO
mkdir -p /nsm/elastic-fleet/artifacts/beats/elastic-agent/
curl --retry 5 --retry-delay 60 https://repo.securityonion.net/file/so-repo/prod/2.4/elasticagent/elastic-agent_SO-$SOVERSION.tar.gz --output /nsm/elastic-fleet/artifacts/elastic-agent_SO-$SOVERSION.tar.gz
tar -xf /nsm/elastic-fleet/artifacts/elastic-agent_SO-$SOVERSION.tar.gz -C /nsm/elastic-fleet/artifacts/beats/elastic-agent/
}
installer_progress_loop() {
local i=0
local msg="${1:-Performing background actions...}"

View File

@@ -605,6 +605,8 @@ if ! [[ -f $install_opt_file ]]; then
gpg_rpm_import
# Create the local repo and point the box to use the local repo
securityonion_repo
# Download Elastic Agent Artifacts
download_elastic_agent_artifacts
# Update existing packages
update_packages
# Install salt