зеркало из https://github.com/Azure/azurehpc.git
29 строки
649 B
Bash
Executable File
29 строки
649 B
Bash
Executable File
#!/bin/bash
|
|
lustre_version=${1-2.10}
|
|
|
|
if [ "$lustre_version" = "2.10" -o "$lustre_version" = "2.12" ]; then
|
|
lustre_dir=latest-${lustre_version}-release
|
|
else
|
|
lustre_dir="lustre-$lustre_version"
|
|
fi
|
|
|
|
cat << EOF >/etc/yum.repos.d/LustrePack.repo
|
|
[lustreserver]
|
|
name=lustreserver
|
|
baseurl=https://downloads.whamcloud.com/public/lustre/${lustre_dir}/el7/patchless-ldiskfs-server/
|
|
enabled=1
|
|
gpgcheck=0
|
|
|
|
[e2fs]
|
|
name=e2fs
|
|
baseurl=https://downloads.whamcloud.com/public/e2fsprogs/latest/el7/
|
|
enabled=1
|
|
gpgcheck=0
|
|
|
|
[lustreclient]
|
|
name=lustreclient
|
|
baseurl=https://downloads.whamcloud.com/public/lustre/${lustre_dir}/el7/client/
|
|
enabled=1
|
|
gpgcheck=0
|
|
EOF
|