Skip to content

Commit

Permalink
fedora >= 22 workaround - dnf provider for fedora not yet in chef (ch…
Browse files Browse the repository at this point in the history
  • Loading branch information
flaccid committed Dec 29, 2016
1 parent 2baf5bd commit 5247ab1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions recipes/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,14 @@

include_recipe 'yum-epel' if platform_family?('rhel')

# fedora >= 22 workaround
# dnf provider for fedora not yet in chef
# https://github.com/chef/chef/issues/3201
if node['platform_family'] == 'fedora' && node['platform_version'] >= '22'
p = execute 'dnf -y install yum' do
action :nothing
end
p.run_action(:run)
end

package 'openvpn'

0 comments on commit 5247ab1

Please sign in to comment.