Skip to content

Commit

Permalink
Kitchen: use CHEF_VERSION env var
Browse files Browse the repository at this point in the history
  • Loading branch information
zuazo committed May 29, 2017
1 parent 08e8dc7 commit ff0bd25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ driver:

provisioner:
name: chef_solo
<% if ENV.key?('CHEF_VERSION') %>
require_chef_omnibus: <%= ENV['CHEF_VERSION'].sub(/^.*> (.*)[.][0-9]+$/, '\1') %>
<% else %>
require_chef_omnibus: true
<% end %>

# Preparing for Chef 13
client_rb:
Expand Down

0 comments on commit ff0bd25

Please sign in to comment.