Add #config header to setup scripts listing required configuration variables
[autocluster.git] / base / all / root / scripts / tasks / install_clusterfs_gpfs.sh
1 #!/bin/sh
2
3 #config: GPFS_BASE_VERSION RHEL_ARCH
4
5 # Must force the base GPFS package first, due to the way GPFS updates
6 # work.
7 echo "Installing GPFS base"
8 yum -y install gpfs.base-@@GPFS_BASE_VERSION@@.@@RHEL_ARCH@@
9
10 echo "Updating GPFS base"
11 yum -y update
12
13 echo "Installing remaining GPFS packages"
14 yum -y install gpfs.docs gpfs.gpl gpfs.msg.en_US gpfs.gskit
15
16 echo "Adding GPFS's bin to PATH"
17 cat >/etc/profile.d/gpfs-autocluster.sh <<EOF
18 # Added by autocluster
19 pathmunge /usr/lpp/mmfs/bin
20 EOF
21
22 echo "Rebuilding the GPFS modules"
23 (cd /usr/lpp/mmfs/src && make Autoconfig World InstallImages)