How to change download policy of repositories in Red Hat Satellite 6?

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.3 and above

Issue

  • How to change download policy of all enabled repositories in Red Hat Satellite 6?
  • How to change repository download policy to immediate in Red Hat Satellite 6?

Resolution

  • To change default download policy, follow below steps on Red Hat Satellite WebUI.

    Administer > Settings > Content > Select "Default Repository download policy" > set "immediate"
    
  • Change download policy of already enabled repository through WebUI.

    Content > products > select "Product" > select "repository" > select "Download Policy" > choose the policy
    
  • Use the following commands to set download policies for all enabled repositories in Red Hat Satellite 6.

    - Changing download policy to 'immediate'.
    # foreman-rake katello:change_download_policy DOWNLOAD_POLICY=immediate
    
    - Changing download policy to 'on-demand'.
    # foreman-rake katello:change_download_policy DOWNLOAD_POLICY=on_demand
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.