soukron / makeCDN

Script to create a valid CDN for a Satellite 6 without internet connection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

makeCDN

Overview

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?

Preparation

  • 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

Basic Usage

  • 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

Advanced Usage

  • 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
    

Contact

Reach me in Twitter or email in soukron at gmbros.net

References

License

Nothing to be licensed, but just in case, everything in this repo is licensed under GNU GPLv3 license. You can read the document here.

About

Script to create a valid CDN for a Satellite 6 without internet connection

License:GNU General Public License v3.0


Languages

Language:Shell 60.8%Language:Python 39.2%