Sha256: 660193d68c192572a3dfcf2197f3600155969f1d106f3ba34c632ef61ce89de0

Contents?: true

Size: 1.41 KB

Versions: 5

Compression:

Stored size: 1.41 KB

Contents

require 'chef/provider/lwrp_base'

class Chef
  class Provider
    class MysqlClient
      class Rhel < Chef::Provider::MysqlClient
        use_inline_resources if defined?(use_inline_resources)

        def whyrun_supported?
          true
        end

        action :create do
          converge_by 'rhel pattern' do
            %w(mysql mysql-devel).each do |p|
              package p do
                action :install
              end
            end
          end
        end

        action :delete do
          converge_by 'rhel pattern' do
            %w(mysql mysql-devel).each do |p|
              package p do
                action :remove
              end
            end
          end
        end
      end
    end
  end
end

Chef::Platform.set :platform => :rhel, :resource => :mysql_client, :provider => Chef::Provider::MysqlClient::Rhel
Chef::Platform.set :platform => :amazon, :resource => :mysql_client, :provider => Chef::Provider::MysqlClient::Rhel
Chef::Platform.set :platform => :redhat, :resource => :mysql_client, :provider => Chef::Provider::MysqlClient::Rhel
Chef::Platform.set :platform => :centos, :resource => :mysql_client, :provider => Chef::Provider::MysqlClient::Rhel
Chef::Platform.set :platform => :oracle, :resource => :mysql_client, :provider => Chef::Provider::MysqlClient::Rhel
Chef::Platform.set :platform => :scientific, :resource => :mysql_client, :provider => Chef::Provider::MysqlClient::Rhel

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloud-toaster-1.1.6 chef/cookbooks/mysql/libraries/provider_mysql_client_rhel.rb
cloud-toaster-1.1.5 chef/cookbooks/mysql/libraries/provider_mysql_client_rhel.rb
cloud-toaster-1.1.4 chef/cookbooks/mysql/libraries/provider_mysql_client_rhel.rb
cloud-toaster-1.1.3 chef/cookbooks/mysql/libraries/provider_mysql_client_rhel.rb
cloud-toaster-1.1.2 chef/cookbooks/mysql/libraries/provider_mysql_client_rhel.rb