Subject: [chef] Re: Version contraints in metadata
Date: Fri, 26 Apr 2013 12:54:07 -0400
I think, in this case, you'll want to just specify each version:
supports "ubuntu", "= 11.04"
supports "ubuntu", "= 11.10"
supports "ubuntu", "= 12.04"
Or
supports "ubuntu", "~>11"
supports "ubuntu", "12.04"
Or
%w(11.04 11.10 12.04).each do |v|
supports "ubuntu", "= #{v}"
end
The docs are a little incorrect, you're right. They suggest that
supports 'ubuntu', ">= 8.04"
will "...support versions of Ubuntu between 8.04 and 9.10" which is not the case (perhaps it was when they were written?). It used to be the case that you could specify multiple versions on one platform, but as you can see from the error message, that's been deprecated.