Skip to content

Commit 6f23bf7

Browse files
committed
images/server: Install storage sig samba for default CentOS
Enable Storage SIG repository for earlier access to latest stable samba releases for default package source on CentOS. Since those repositories comes with ctdb packages we no longer need to additionally enable the resilientstorage repository. Signed-off-by: Anoop C S <[email protected]>
1 parent 8ecf876 commit 6f23bf7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

images/server/install-packages.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ get_samba_nightly_repo() {
4444
get_custom_repo "https://artifacts.ci.centos.org/samba/pkgs/master/${OS_BASE}/samba-nightly-master.repo"
4545
}
4646

47+
get_sig_samba_repo() {
48+
if [[ "${OS_BASE}" = centos ]]; then
49+
dnf install --setopt=install_weak_deps=False -y \
50+
centos-release-samba
51+
fi
52+
}
53+
4754
get_distro_ceph_repo() {
4855
if [[ "${OS_BASE}" = centos ]]; then
4956
dnf install --setopt=install_weak_deps=False -y \
@@ -99,6 +106,7 @@ case "${install_packages_from}" in
99106
package_selection=${package_selection:-custom-devbuilds}
100107
;;
101108
*)
109+
get_sig_samba_repo
102110
get_distro_ceph_repo
103111
package_selection=${package_selection:-default}
104112
;;
@@ -108,9 +116,6 @@ esac
108116
dnf_cmd=(dnf)
109117
if [[ "${OS_BASE}" = centos ]]; then
110118
dnf_cmd+=(--enablerepo=crb)
111-
if [[ "${package_selection}" = "default" ]]; then
112-
dnf_cmd+=(--enablerepo=resilientstorage)
113-
fi
114119
fi
115120

116121

@@ -140,7 +145,7 @@ case "${package_selection}-${OS_BASE}" in
140145
support_packages+=(libcephfs-proxy2)
141146
# Fall through to next case
142147
;&
143-
nightly-centos)
148+
nightly-centos|default-centos)
144149
dnf_cmd+=(--enablerepo=epel)
145150
samba_packages+=(samba-vfs-cephfs ctdb-ceph-mutex)
146151
# these packages should be installed as deps. of sambacc extras

0 commit comments

Comments
 (0)