CHEF-4933: ifconfig provider overwrites the configfile every time in :add action, and the configfile never be kept up-to-date

for fix CHEF-4933, I replaced the configfile writing/deleting code with file resource.