vagrant/plugins/provisioners/chef/provisioner
Seth Vargo 5a4f345363
Use Util::Tempfile when configuring networks
This fixes a fairly large tempfile leak. Vagrant uses a template
renderer to write network configuration files locally to disk. Then,
that temporarily file is uploaded to the remote host and moved into
place. Since Vagrant is such a short-lived process, GC never came along
and cleaned up those tempfiles, resulting in many temporary files being
created through regular Vagrant usage.

The Util::Tempfile class uses a block to ensure the temporary file is
deleted when the block finishes. This API required small tweaks to the
usage, but provides more safety to ensure the files are deleted.
2016-05-28 23:22:34 -04:00
..
base.rb Use hostname if no node_name is set 2016-03-17 20:15:11 -05:00
chef_apply.rb Use Util::Tempfile when configuring networks 2016-05-28 23:22:34 -04:00
chef_client.rb Use hostname if no node_name is set 2016-03-17 20:15:11 -05:00
chef_solo.rb Trailing comma 2016-05-19 11:35:53 -04:00
chef_zero.rb Bring back `nodes_path` support for the Chef Zero provisioner 2015-07-28 12:41:51 -04:00