diff options
author | John Keiser <john@johnkeiser.com> | 2015-05-06 17:33:50 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-06-02 09:53:40 -0700 |
commit | fa0b9a5a92c477ef5ea84bf90a266943bb1a04c9 (patch) | |
tree | e2f7d6a8a7cf70894b9caead82bc306735c2e99e /lib/chef/provider/ifconfig | |
parent | 8a968eeb58139b00e8bfc35b52cb9150515525a8 (diff) | |
download | chef-fa0b9a5a92c477ef5ea84bf90a266943bb1a04c9.tar.gz |
Move provider_mapping values out into the actual resource classes
Diffstat (limited to 'lib/chef/provider/ifconfig')
-rw-r--r-- | lib/chef/provider/ifconfig/aix.rb | 1 | ||||
-rw-r--r-- | lib/chef/provider/ifconfig/debian.rb | 1 | ||||
-rw-r--r-- | lib/chef/provider/ifconfig/redhat.rb | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/provider/ifconfig/aix.rb b/lib/chef/provider/ifconfig/aix.rb index 8fead44bc6..9b14cb8a81 100644 --- a/lib/chef/provider/ifconfig/aix.rb +++ b/lib/chef/provider/ifconfig/aix.rb @@ -22,6 +22,7 @@ class Chef class Provider class Ifconfig class Aix < Chef::Provider::Ifconfig + Aix.provides :ifconfig, platform: %w(aix) def load_current_resource @current_resource = Chef::Resource::Ifconfig.new(@new_resource.name) diff --git a/lib/chef/provider/ifconfig/debian.rb b/lib/chef/provider/ifconfig/debian.rb index 7589971143..85765a6fea 100644 --- a/lib/chef/provider/ifconfig/debian.rb +++ b/lib/chef/provider/ifconfig/debian.rb @@ -23,6 +23,7 @@ class Chef class Provider class Ifconfig class Debian < Chef::Provider::Ifconfig + provides :ifconfig, platform: %w(ubuntu >= 11.10 debian >= 7.0) INTERFACES_FILE = "/etc/network/interfaces" INTERFACES_DOT_D_DIR = "/etc/network/interfaces.d" diff --git a/lib/chef/provider/ifconfig/redhat.rb b/lib/chef/provider/ifconfig/redhat.rb index ef35b0e012..692c2a32bf 100644 --- a/lib/chef/provider/ifconfig/redhat.rb +++ b/lib/chef/provider/ifconfig/redhat.rb @@ -22,6 +22,7 @@ class Chef class Provider class Ifconfig class Redhat < Chef::Provider::Ifconfig + provides :ifconfig, platform: %w(centos fedora redhat ibm_powerkvm cloudlinux parallels) def initialize(new_resource, run_context) super(new_resource, run_context) |