'URL' section for custom local repo on satellite 6.2
When we create a custom local repo on satellite server 6, what do we suppose to put on "URL" section on Web UI under the "Product" --> Repositories --> Custom repo --> URL ( under Type ) to sync the custom rpms. I know on Spacewalk, it was soemething like "file:///custom repos/.." . ( I am not trying to sync external repos here, custom repositories are created on Satellite Server )
Responses
Shisheer,
I suggest reading the Creating a custom RPM Repository section of the Content Management Guide.
In the example given in that section, the URL is http://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/.
If you need any further help, please ask.
It depends on what you are building a custom local repository for. Russell's example above is for a case where you want your Satellite 6 server to be a local mirror of a repository from elsewhere (e.g., the Postgres example given, or the EPEL repositories).
For a truly "custom local" repository - one that has RPMs you build yourself from source code - you do not need anything at all in the "URL" field. You can load your custom packages directly into the repo via the web interface (if the packages are not too large) or via the hammer command-line tools.
If your enterprise has multiple Satellite servers, you might want to use one Satellite as a "master" source for your custom repositories, and have all other Satellites synchronize your repository from the main server. In that case, you would take the "published at:" URL from that repository on the master server and copy it into the "URL" field on the other Satellite servers.
To synchronise the repository after a build, you could run a hammer command on the build server. You would need to install hammer on the build server, and set up the hammer configuration file, including credentials. Alternatively, you could set up a Sync plan at a set interval and time - daily, weekly, monthly.
Once the repository is synchronised, you then need to promote the Content View to the test environment. The updated RPMs should then be available to the test machine.
@James What you mentioned does not work. It is not possible to provide clients the rpms via a normal repo, if you upload files directly via webinterface. Stick to the documentation you are only able to use curl. Mentioned here: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/html/content_management_guide/importing_custom_content#Importing_Custom_Content-Downloading_Files_From_a_Custom_File_Type_Repository
Hi,
i have the same. I am looking for a way to spare out specific versions in provided repos, like rhelos and epel and deliver those specific versions via custom repos. In RHUI it is easy, to provide those custom packages. They will immediately appear in a repo way.
On satellite i am not able to specify a folder in the way of file:///my_repo <- where is the path located if not fully customizable on the satellite itself? I tried to specify /opt/foo/my_repo but a sync failed. Yes, i executed pulp_manifest. How is this supposed to work?
The Documentation is horrible and we have also a copy&paste error again. Chapter https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/html/content_management_guide/importing_custom_content#Importing_Custom_Content-Creating_a_Custom_File_Type_Repository_Local_Directory in the first subsection point 3 a HTTP server is mentioned but none is involved in this example. It is a copy&paste error from https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/html/content_management_guide/creating_a_remote_file_type_repository
@https://access.redhat.com/user/1205683 James What you mentioned does not work. It is not possible to provide clients the rpms via a normal repo, if you upload files directly via webinterface. Stick to the documentation you are only able to use curl. Mentioned here: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/html/content_management_guide/importing_custom_content#Importing_Custom_Content-Downloading_Files_From_a_Custom_File_Type_Repository
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
