Making CloudBlue Commerce Central YUM Repository Accessible
CloudBlue Commerce Central YUM repository provides binary files required for various components of CloudBlue Commerce to run. This section describes how to make it accessible from the Linux-based nodes that do not have access to the Internet.
You can either create the repository mirror or provide access to the repository through HTTP proxy.
Configuring a Proxy for the Central YUM Repository of CloudBlue Commerce
To configure a proxy to the Central YUM Repository of CloudBlue Commerce, you need to do the following:
- Create a HTTP proxy that will comply with the security standards of your company.
-
Register your proxy in CloudBlue Commerce:
- Go to Infrastructure and click Package Repository in the Packages list.
- Switch to the YUM Configuration tab and click Edit.
- Specify the URL of your proxy in the Repository proxy URL and click Apply to hosts.
Also, you can use Privacy Proxy for YUM configuration. To configure it:
- On the management node, at Infrastructure > Service Controllers, install the PrivacyProxy service controller.
- On a Linux slave node, at Infrastructure > Service Nodes > service node > Packages, install the PrivacyProxy service.
-
In the Infrastructure > Package Repository > YUM Configuration > Repository proxy URL field, enter:
http://<internal_ip_of_slave_with_proxy_service>:8008
- Click Apply to hosts.
Creating a Central YUM Repository Mirror for CloudBlue Commerce
The host which will be used as a mirror of CloudBlue Commerce Central repository must meet the following requirements:
- There must be at least 32GB of free space on this host.
-
The host must run the OS version equal to the oldest OS installed on the hosts registered in your CloudBlue Commerce set.
Example: If some hosts run CentOS 7/RHEL 7 and some run CentOS 6/RHEL 6, then you must install CentOS 6/RHEL 6 on the host which is planned to be used as mirror for CloudBlue Commerce Central repository.
- The httpd and rsync services must be installed and configured on the host.
- The host must be accessible from every Linux-based node registered in CloudBlue Commerce (including CloudBlue Commerce management node).
- CloudBlue Commerce Central repository must be accessible from this host. This is requirement for synchronization process.
To create a mirror of the CloudBlue Commerce Central YUM repository, perform the following steps:
- Go to the
www-content
root directory and create thereleases/
directory there. This directory will be used as a storage for the CloudBlue Commerce Central YUM repository data. -
Run the following command to synchronize data with CloudBlue Commerce Central YUM repository:
rsync -av rsync://download.automation.odin.com/oa74 --timeout=60 --delete --recursive releases/
- Use URL to the mirror as an argument for the
--repo-base-url
parameter when running install, update or pre-check scripts to change default location for CloudBlue Commerce Central YUM repository in CloudBlue Commerce.
If the mirror has been created after update or installation of CloudBlue Commerce, you need to specify URL to the mirror thus it will be used by Linux-based hardware nodes. Go through the following steps for this purpose:
- Go to Infrastructure and click Package Repository in the Packages list.
- Switch to the YUM Configuration tab and click Edit.
- Specify URL to the newly created mirror as the Repository base URL.
- Click Apply to hosts. After that a number of tasks will be started: one for each Linux-based host in CloudBlue Commerce. During these tasks the
.repo
files will be recreated on all affected hosts.