Chef Ideas

We believe that the best way to build software is to do it in close collaboration with the people who use it.  We invite you to submit your ideas using the form below.  Please be sure to include the problem for which you are solving and the benefits of implementing the idea.  Thanks for collaborating with us!

Add priority list to default_sources in policyfiles

Can we get a priority list feature for default_sources in policyfiles?  I'm imagining it can work like:


For each cookbook {

  If preferred_for exists for cookbook{

    search the preferred default_source for the cookbook

    If cookbook is found -> retrieve it and break

    Otherwise error

  }Otherwise if no preferred_for exists{

    For each default_source in priority order{

      Search for the cookbook in default_source

      If cookbook found -> retrieve it and break

      Otherwise move on to the next default_source in the priority list.


    If cookbook is not found in any of the default_sources -> error




Similar request in a Github issue here:

  • Guest
  • Oct 7 2019
  • Researching
  • Attach files