2019-10-24 17:13:06 +03:00
|
|
|
#!/bin/bash
|
2019-11-20 13:45:07 +03:00
|
|
|
lustre_version=${1-2.10}
|
2019-10-24 17:13:06 +03:00
|
|
|
|
2020-06-10 12:45:47 +03:00
|
|
|
if [ "$lustre_version" = "2.10" -o "$lustre_version" = "2.12" ]; then
|
2020-06-09 17:57:46 +03:00
|
|
|
lustre_dir=latest-${lustre_version}-release
|
|
|
|
else
|
|
|
|
lustre_dir="lustre-$lustre_version"
|
|
|
|
fi
|
|
|
|
|
2019-10-24 17:13:06 +03:00
|
|
|
cat << EOF >/etc/yum.repos.d/LustrePack.repo
|
|
|
|
[lustreserver]
|
|
|
|
name=lustreserver
|
2020-06-09 17:57:46 +03:00
|
|
|
baseurl=https://downloads.whamcloud.com/public/lustre/${lustre_dir}/el7/patchless-ldiskfs-server/
|
2019-10-24 17:13:06 +03:00
|
|
|
enabled=1
|
|
|
|
gpgcheck=0
|
|
|
|
|
|
|
|
[e2fs]
|
|
|
|
name=e2fs
|
|
|
|
baseurl=https://downloads.whamcloud.com/public/e2fsprogs/latest/el7/
|
|
|
|
enabled=1
|
|
|
|
gpgcheck=0
|
|
|
|
|
|
|
|
[lustreclient]
|
|
|
|
name=lustreclient
|
2020-06-09 17:57:46 +03:00
|
|
|
baseurl=https://downloads.whamcloud.com/public/lustre/${lustre_dir}/el7/client/
|
2019-10-24 17:13:06 +03:00
|
|
|
enabled=1
|
|
|
|
gpgcheck=0
|
|
|
|
EOF
|