1. Home
  2. Configuring
  3. How do I set up a local Bright repository?

How do I set up a local Bright repository?

This article is being updated. Please be aware the content herein, not limited to version numbers and slight syntax changes, may not match the output from the most recent versions of Bright. This notation will be removed when the content has been updated.


1. Copy the Bright yum repo file, /etc/yum.repos.d/cm.repo and the GPG keys under /etc/pki/rpm-gpg, from the head node to the server where you’re going to create the local mirror.

2. Get the repository ID:
(on the mirror server)

# yum clean all
# yum repo list
[...]
cm-rhel6-7.0 Cluster Manager 7.0 for Red Hat Enterprise Linux 6 301+8
cm-rhel6-7.0-updates Cluster Manager 7.0 for Red Hat Enterprise Linux 6 - Updates 371
[...]

3. Sync the repository locally:

# mkdir -p /path/to/local/yum/repo/cm-rhel6-7.0

# cd /path/to/local/yum/repo/cm-rhel6-7.0

# rpm --import </path/to/gpg-key>
# reposync --gpgcheck -l --repoid=cm-rhel6-7.0 -n
# createrepo -v /path/to/local/yum/repo/cm-rhel6-7.0

# mkdir -p /path/to/local/yum/repo/cm-rhel6-7.0-updates
# reposync --gpgcheck -l --repoid=cm-rhel6-7.0 -n
# createrepo -v /path/to/local/yum/repo/cm-rhel6-7.0-updates

4. You may need to create local repositories for ceph-* and epel as well since some Bright packages may have some dependencies which are provided by these repositories.

Updated on October 6, 2020

Was this article helpful?

Related Articles

Leave a Comment