[chef-dev] Re: [chef] Re: Chef Client 12.1.0 Released


Chronological Thread 
  • From: Charles Johnson < >
  • To:
  • Cc:
  • Subject: [chef-dev] Re: [chef] Re: Chef Client 12.1.0 Released
  • Date: Fri, 6 Mar 2015 10:37:01 -0800

+1 on this, having people manually keep array indices in sync isn't safe.

I've created https://github.com/chef/chef/issues/3040 to track this.


--Charles

On March 4, 2015 at 10:58:49 AM, Michael Fischer ( "> ) wrote:

I did some background reading on the list support to the package provider.  

While I'm very pleased that you can now do package installations much faster, I'm concerned about the syntax.  In particular, my concern is the way names and versions are mapped using a pair of Arrays instead of a more logical Hash map.  I'd expect something like:

packages "group" do
  list { "foo" => "1.0.0", "bar", => "2.1.7" }
end

Instead we got something like this:

package ["foo", "bar"] do
  version ["1.0.0", "2.1.7"]
end

For reasonably short lists, this is fine, but once you get past 5 or so, having to iterate the lists by hand to match the name and version will become extremely difficult and error prone.  If the above couldn't be done using the package provider, I'd suggest that a new resource should have been created instead so that the semantics could be better defined.

Best regards,

--Michael

On Tue, Mar 3, 2015 at 10:43 AM, Jay Mundrawala < " target="_blank"> > wrote:
Hi Chefs,
We've just released Chef 12.1.0. You can read more about it at https://www.chef.io/blog/2015/03/03/chef-12-1-0-released/.

Thanks,
Jay




Archive powered by MHonArc 2.6.16.

§