summaryrefslogtreecommitdiff
path: root/lib/chef/provider/ifconfig/debian.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/ifconfig/debian.rb')
-rw-r--r--lib/chef/provider/ifconfig/debian.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/ifconfig/debian.rb b/lib/chef/provider/ifconfig/debian.rb
index 614cd7baf9..17d5fdd243 100644
--- a/lib/chef/provider/ifconfig/debian.rb
+++ b/lib/chef/provider/ifconfig/debian.rb
@@ -65,6 +65,7 @@ iface <%= new_resource.device %> <%= new_resource.family %> static
def enforce_interfaces_dot_d_sanity
# on ubuntu 18.04 there's no interfaces file and it uses interfaces.d by default
return if ::File.directory?(INTERFACES_DOT_D_DIR) && !::File.exist?(INTERFACES_FILE)
+
# create /etc/network/interfaces.d via dir resource (to get reporting, etc)
dir = Chef::Resource::Directory.new(INTERFACES_DOT_D_DIR, run_context)
dir.run_action(:create)