Skip to content

Commit

Permalink
Merge branch 'installation-script' of github.com:perfsonar/project in…
Browse files Browse the repository at this point in the history
…to installation-script
  • Loading branch information
mfeit-internet2 committed Apr 22, 2024
2 parents d5cc19c + 9ae5605 commit a2c4dc2
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions install-perfsonar
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,17 @@ case "${PS_BUNDLE}" in
;;
esac

# We need to set an environment variable for opensearch install.
# The value has to pass opensearch security checks length and character mix,
# but otherwise does not matter since it will be overwritten by
# a random password by perfsoanr-archive package.
INSTALL_ENV=""
case "${PS_BUNDLE}" in
core|toolkit|archive)
INSTALL_ENV="env OPENSEARCH_INITIAL_ADMIN_PASSWORD=perfSONAR123! "
;;
esac


# -----------------------------------------------------------------------------

Expand Down Expand Up @@ -253,6 +264,8 @@ install_redhat()
staging|nightly-minor|nightly-patch)
narrate "Installing ${REPO} repository"
do_dry dnf -y install "perfsonar-repo-${REPO}"
# Remove prod repo so we can test a clean setup from chosen repo
do_dry dnf -y remove "perfsonar-repo"
;;
*)
# Nothing to do; production is the default
Expand All @@ -265,9 +278,9 @@ install_redhat()
narrate Updating System
do_dry $DNF -y update

narrate "Installing perfSOANR ${PS_BUNDLE} bundle"
narrate "Installing perfSONAR ${PS_BUNDLE} bundle"

do_dry $DNF -y install "perfsonar-${PS_BUNDLE}"
do_dry ${INSTALL_ENV}$DNF -y install "perfsonar-${PS_BUNDLE}"

if $AUTO_UPDATES
then
Expand Down Expand Up @@ -351,6 +364,18 @@ install_debian()
echo "(Not installing perfSONAR snapshot GPG key)"
fi
;;

nightly-minor)
LIST=/etc/apt/sources.list.d/perfsonar-minor-snapshot.list
do_dry rm -rf "${LIST}"
do_dry curl -o "${LIST}" http://downloads.perfsonar.net/debian/perfsonar-minor-snapshot.list
if ! $DRY_RUN
then
wget -qO - http://downloads.perfsonar.net/debian/perfsonar-snapshot.gpg.key | apt-key add -
else
echo "(Not installing perfSONAR snapshot GPG key)"
fi
;;

nightly-minor|nightly-patch)
printf "\n\nNOTE: Installing the Debian minor snapshot repository\n\n"
Expand All @@ -369,12 +394,7 @@ install_debian()
do_dry apt-get -y update

narrate "Installing perfSONAR ${PS_BUNDLE} bundle"
do_dry apt-get -y install "perfsonar-${PS_BUNDLE}"

narrate "Starting services"
do_dry service owamp-server start
do_dry service perfsonar-lsregistrationdaemon start
do_dry pscheduler internal service restart
do_dry ${INSTALL_ENV}apt-get -y install "perfsonar-${PS_BUNDLE}"

if $AUTO_UPDATES
then
Expand Down

0 comments on commit a2c4dc2

Please sign in to comment.