summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2017-09-05 15:17:29 +0100
committerRenato Golin <renato.golin@linaro.org>2017-09-05 15:17:29 +0100
commita9d67d5ec67c00cee2be08d70d90498fe7d0594c (patch)
tree19509e5b6e6b8af78fe330b91e564687ba877eaf
parent81400f2ad94e827db1224d564b07a6f73c0894b3 (diff)
no need for slave-only provisioning
Change-Id: If5d87f8f163a4d1fad45adccae252bd3b7475d64
-rwxr-xr-xcentos7/04_slave_provision.sh58
1 files changed, 0 insertions, 58 deletions
diff --git a/centos7/04_slave_provision.sh b/centos7/04_slave_provision.sh
deleted file mode 100755
index 9b23a0e..0000000
--- a/centos7/04_slave_provision.sh
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/usr/bin/env bash
-
-# This script installs OpenHPC on a bare CentOS machine.
-# The base of this script is from the docs-ohpc package at
-# /opt/ohpc/pub/doc/recipes/centos7/aarch64/warewulf/slurm/recipe.sh
-# For more information, see the OpenHPC installation guide, Apendix A.
-
-# Stage 05: Slave provision, direct install (when master has no PXE)
-# Requires input.local and a set environment correctly beforehand.
-
-set -ex
-
-. ./input.local
-
-if [[ ${node_is_master} -eq 1 ]]; then
- echo "This script only runs on the slave node"
- exit 0
-fi
-
-# If this is ran on the slave, you also need to disable the firewall
-systemctl disable firewalld
-systemctl stop firewalld
-
-# ------------------------------------------------------------
-# Add OpenHPC base components to compute image (Section 4.7.2)
-# ------------------------------------------------------------
-
-yum -y install ohpc-base-compute
-
-# -------------------------------------------------------
-# Add OpenHPC components to compute image (Section 4.7.2)
-# -------------------------------------------------------
-
-yum -y install ohpc-slurm-client
-if [[ ${enable_ipoib} -eq 1 ]];then
- yum -y groupinstall "InfiniBand Support"
- yum -y install infinipath-psm
- systemctl enable rdma
-fi
-yum -y install ntp kernel lmod-ohpc
-
-# ----------------------------------------------
-# Customize system configuration (Section 4.7.3)
-# ----------------------------------------------
-
-echo "${sms_ip}:/home /home nfs nfsvers=3,rsize=1024,wsize=1024,cto 0 0" >> /etc/fstab
-echo "${sms_ip}:/opt/ohpc/pub /opt/ohpc/pub nfs nfsvers=3 0 0" >> /etc/fstab
-
-# --------------------------------------------------------
-# Configure rsyslog on SMS and computes (Section 4.7.4.10)
-# --------------------------------------------------------
-
-echo "*.* @${sms_ip}:514" >> /etc/rsyslog.conf
-perl -pi -e "s/^\*\.info/\\#\*\.info/" /etc/rsyslog.conf
-perl -pi -e "s/^authpriv/\\#authpriv/" /etc/rsyslog.conf
-perl -pi -e "s/^mail/\\#mail/" /etc/rsyslog.conf
-perl -pi -e "s/^cron/\\#cron/" /etc/rsyslog.conf
-perl -pi -e "s/^uucp/\\#uucp/" /etc/rsyslog.conf