From 99ab87be9c101a06320035a52457b682334d7145 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 9 Jun 2021 18:27:07 +0900 Subject: [PATCH] Remove a provider for CentOS/RHEL 6 CentOS6 and RHEL6 are no longer supported so we'll no longer use that provider implementation. Change-Id: I99e6da0110de10467fa44aa894a66814fa632839 --- lib/puppet/provider/vs_port/ovs_redhat_el6.rb | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 lib/puppet/provider/vs_port/ovs_redhat_el6.rb diff --git a/lib/puppet/provider/vs_port/ovs_redhat_el6.rb b/lib/puppet/provider/vs_port/ovs_redhat_el6.rb deleted file mode 100644 index 514e1afd..00000000 --- a/lib/puppet/provider/vs_port/ovs_redhat_el6.rb +++ /dev/null @@ -1,22 +0,0 @@ -require File.expand_path(File.join(File.dirname(__FILE__), '.','ovs_redhat.rb')) - -Puppet::Type.type(:vs_port).provide( - :ovs_redhat_el6, - :parent => Puppet::Type.type(:vs_port).provider(:ovs_redhat) -) do - desc 'Openvswitch port manipulation for RedHat OSes family' - - confine :osfamily => :redhat, :operatingsystemmajrelease => 6 - defaultfor :osfamily => :redhat, :operatingsystemmajrelease => 6 - - private - - def dynamic? - # iproute doesn't behave as expected on rhel6 for dynamic interfaces - if File.read(BASE + @resource[:interface]) =~ /^BOOTPROTO=['"]?dhcp['"]?$/ - return true - else - return false - end - end -end