How does metadata's "support" settings work?

Hi All,
I am learning Chef and I am writing my first Cookbook.
I am having an issue that I described here:

in which Chef basically can't find a cookbook I reference in my berkshelf
file. (I reference others and they work).

The point is: I am referencing an iptables cookbook in an windows
environment for testing purposes. I expect it to fail, but I expect it to
fail because iptables is not present and not because it can't find the
cookbook.

I noticed that simple_iptables has a supports settings in the metada and I
found this link in this list:
http://lists.opscode.com/sympa/arc/chef/2013-09/msg00388.html

I would like to know how the supports settings work: will it prevent the
cookbook from being used in an environment which is not supported? Could it
be the reason for the error I am getting?

Thanks!

On Wed, Oct 15, 2014 at 11:16 PM, Oscar oscarfh@gmail.com wrote:

I would like to know how the supports settings work: will it prevent the
cookbook from being used in an environment which is not supported? Could it
be the reason for the error I am getting?

"supports" in metadata is informational only and doesn't cause the
client to do anything different.

  • Julian

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

Hm, I understand, so this is not the problem :frowning:
Thanks, anyway :slight_smile:
Could you please help me understand what is causing my issue?

2014-10-16 13:04 GMT-03:00 Julian C. Dunn jdunn@aquezada.com:

On Wed, Oct 15, 2014 at 11:16 PM, Oscar oscarfh@gmail.com wrote:

I would like to know how the supports settings work: will it prevent the
cookbook from being used in an environment which is not supported? Could
it
be the reason for the error I am getting?

"supports" in metadata is informational only and doesn't cause the
client to do anything different.

  • Julian

--
[ Julian C. Dunn jdunn@aquezada.com * Sorry, I'm ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]

On Thu, Oct 16, 2014 at 12:11 PM, Oscar oscarfh@gmail.com wrote:

Hm, I understand, so this is not the problem :frowning:
Thanks, anyway :slight_smile:
Could you please help me understand what is causing my issue?

Not sure, but it looks like others are already trying to help you on
the SO thread. Please, let's try to keep assistance for a particular
issue to a single forum.

  • Julian