sed -n -e 's/Name: *//p')
for i in $nodes ; do
- $ssh "$i" ./scripts/install_gpfs_nas.sh
+ $ssh "$i" ./scripts/install_packages.sh clusterfs nas
done
$ssh "$n1" ./scripts/setup_gpfs.sh
#!/bin/sh
-# we have to force the base GPFS package first, due to the way gpfs updates work
+# Must force the base GPFS package first, due to the way GPFS updates
+# work.
echo "Installing GPFS base"
yum -y install gpfs.base-@@GPFS_BASE_VERSION@@.@@RHEL_ARCH@@
-# then update it
-
echo "Updating GPFS base"
yum -y update
+++ /dev/null
-#!/bin/sh
-
-# Make this explicit so we only get RHEL updates to make things nice
-# and clear. This duplicates what happens in basic-postinstall.sh but
-# we may have just rewound the cluster, so we might be running this on
-# the node install of from kickstart.
-echo "Updating from YUM repositories"
-yum -y update
-
-$(dirname $0)/install_gpfs.sh
-
-echo "Installing tdb tools packages"
-yum -y install tdb-tools
-
-echo "Installing ctdb packages"
-yum -y install ctdb ctdb-debuginfo ctdb-devel ctdb-tests
-
-echo "Installing samba packages"
-yum -y install samba samba-debuginfo samba-client samba-doc
-
-echo "Installing rssh"
-yum -y install rssh
--- /dev/null
+#!/bin/sh
+
+echo "Installing tdb tools packages"
+yum -y install tdb-tools
+
+echo "Installing ctdb packages"
+yum -y install ctdb ctdb-debuginfo ctdb-devel ctdb-tests
+
+echo "Installing samba packages"
+yum -y install samba samba-debuginfo samba-client samba-doc
+
+echo "Installing rssh"
+yum -y install rssh
--- /dev/null
+#!/bin/sh
+
+echo "Updating from YUM repositories"
+yum -y update
+
+extra_packages="@@CONFIG_EXTRA_PACKAGES@@"
+if [ -n "$extra_packages" ] ; then
+ yum -y install $extra_packages
+fi
+
+dn=$(dirname $0)
+
+for task ; do
+ case "$task" in
+ clusterfs)
+ type="@@CLUSTERFS_TYPE@@"
+ file="install_clusterfs_${type}.sh"
+ ;;
+ *)
+ file="install_${task}.sh"
+ esac
+
+ path="${dn}/${file}"
+
+ if [ ! -x "$path" ] ; then
+ echo "Unable to find script \"${file}\" to install task \"${task}\""
+ exit 1
+ fi
+
+ "$path"
+done
defconf INSTALL_SERVER "http://10.0.0.1/mediasets" \
"<url>" "URL of install server"
+defconf CONFIG_EXTRA_PACKAGES "" \
+ "<packages>" "list of extra packages to install at configuration time"
+
# the yum repositories to use. Choose the one appropriate for the
# system you are installing
defconf YUM_TEMPLATE "$_YUM_TEMPLATE" \