Created
June 7, 2014 07:36
-
-
Save hagzag/78f78ac72bedf541ab23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'chef/provider/lwrp_base' | |
class Chef | |
class Provider | |
class MysqlClient | |
class Suse < Chef::Provider::MysqlClient | |
use_inline_resources if defined?(use_inline_resources) | |
def whyrun_supported? | |
true | |
end | |
action :create do | |
converge_by 'suse pattern' do | |
%w(mysql-client).each do |p| | |
package p do | |
action :install | |
end | |
end | |
end | |
end | |
action :delete do | |
converge_by 'suse pattern' do | |
%w(mysql-client).each do |p| | |
package p do | |
action :remove | |
end | |
end | |
end | |
end | |
end | |
end | |
end | |
end | |
Chef::Platform.set :platform => :suse, :resource => :mysql_client, :provider => Chef::Provider::MysqlClient::Suse |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment