This script allows to create a valid RPM tree to be used with a Satellite 6 without internet connection. This is useful in laboratorio/testing environments where Satellite may be destroyed and recreated quickly.
Warning: Do not use this script in production environments to feed Satellite. Use Content ISOs provided by Red Hat instead for production.
Warning: This procedure is not supported in any way by Red Hat as a method to provide content to a disconnected Satellite. Use Content ISOs provided by Red Hat instead for production.
Warning: You may get in troubles if use this method in production environments . Use Content ISOs provided by Red Hat instead for production.
Did you notice my warnings?
- Clone this repo in your computer
- Move its content to your source directory, /var/www/html/cdn or edit the script to use a different directory
- Subscribe your CDN server to Red Hat with a valid entitlement
- Enable your desired repos using subscription-manager
- Make sure that hostname -f is resolved by DNS or edit the script to use a different hostname
- Modify repos.txt file to set which repositories should be synchronized and exported as CDN (previously enabled with your valid entitlement)
- Run this script and let it finish:
./makeCDN.sh
- Set your Satellite to use your server as CDN: http://yourserver.yourdomain.tld/cdn
-
If you want to create different versions as time goes by, you can provide a name as first parameter:
./makeCDN.sh version1
-
If you want to create a new version, using any existing version, as source to save time in download process, use a second parameter:
./makeCDN.sh version2 version1
Reach me in Twitter or email in soukron at gmbros.net
- Simple Script to create 'listing' files as required by Satellite 6 to import Content ISOs https://github.com/sideangleside/makeCDNListingFiles
- How to create a local mirror of the latest update for Red Hat Enterprise Linux 5, 6, 7 without using Satellite server? https://access.redhat.com/solutions/23016
Nothing to be licensed, but just in case, everything in this repo is licensed under GNU GPLv3 license. You can read the document here.