summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/_ifconfig.rb2
-rw-r--r--lib/chef/resource/ifconfig.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_ifconfig.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_ifconfig.rb
index 149b2cb65c..2a02636ac2 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/_ifconfig.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/_ifconfig.rb
@@ -1,3 +1,5 @@
+return if fedora? && node["platform_version"] >= "33" # ifconfig does not support the new network manager keyfile format
+
execute "create virtual interface for testing" do
command "ifconfig eth0:0 123.123.22.22"
end
diff --git a/lib/chef/resource/ifconfig.rb b/lib/chef/resource/ifconfig.rb
index 223e10967f..5e46fa10f3 100644
--- a/lib/chef/resource/ifconfig.rb
+++ b/lib/chef/resource/ifconfig.rb
@@ -26,7 +26,7 @@ class Chef
provides :ifconfig
- description "Use the **ifconfig** resource to manage interfaces on Unix and Linux systems. Note: This resource requires the ifconfig binary to be present on the system and may require additional packages to be installed first. On Ubuntu 18.04 or later you will need to install the `ifupdown` package, which disables the built in Netplan functionality."
+ description "Use the **ifconfig** resource to manage interfaces on Unix and Linux systems. Note: This resource requires the ifconfig binary to be present on the system and may require additional packages to be installed first. On Ubuntu 18.04 or later you will need to install the `ifupdown` package, which disables the built in Netplan functionality. This resource will not work with Fedora release 33 or later."
examples <<~DOC
**Configure a network interface with a static IP**