-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DAOSGCP-85 Add daos_client_install_script output to daos_server module (
#32) * DAOSGCP-85 Add daos_client_install_script output to daos_server module Needed for HPC toolkit Signed-off-by: Mark A. Olson <[email protected]>
- Loading branch information
1 parent
24753dd
commit 5a68fe9
Showing
7 changed files
with
57 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
terraform/modules/daos_server/scripts/daos_client_install_script.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
# Install DAOS Client package | ||
# | ||
# TODO: Add support for installing on openSUSE Leap 15.3 and Ubuntu 20.04 LTS | ||
# | ||
|
||
DAOS_VERSION="${DAOS_VERSION:-2.0}" | ||
|
||
echo "BEGIN: DAOS Client Installation" | ||
|
||
# Determine which repo to use | ||
# shellcheck disable=SC1091 | ||
source "/etc/os-release" | ||
OS_VERSION=$(echo "${VERSION_ID}" | cut -d. -f1) | ||
OS_VERSION_ID="${ID,,}_${OS_VERSION}" | ||
case ${OS_VERSION_ID} in | ||
centos_7) | ||
DAOS_OS_VERSION="CentOS7" | ||
;; | ||
centos_8) | ||
DAOS_OS_VERSION="CentOS8" | ||
;; | ||
rocky_8) | ||
DAOS_OS_VERSION="CentOS8" | ||
;; | ||
*) | ||
echo "ERROR: Unsupported OS: ${OS_VERSION_ID}. Exiting." | ||
exit 1 | ||
;; | ||
esac | ||
|
||
echo "Adding DAOS v${DAOS_VERSION} packages repo" | ||
curl -s --output /etc/yum.repos.d/daos_packages.repo "https://packages.daos.io/v${DAOS_VERSION}/${DAOS_OS_VERSION}/packages/x86_64/daos_packages.repo" | ||
|
||
echo "Installing daos-client and daos-devel packages" | ||
yum install -y daos-client daos-devel | ||
systemctl enable daos_agent | ||
|
||
echo "END: DAOS Client Installation" |