vagrant/plugins/provisioners/ansible
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
..
cap/guest provisioners/ansible: minor code formatting change 2015-12-07 22:30:13 +01:00
config provisioners/ansible: add basic config validators 2016-04-20 23:54:19 +02:00
provisioner Use Util::Tempfile when configuring networks 2016-05-28 23:22:34 -04:00
errors.rb provisioners/ansible(both): add galaxy support 2015-11-17 22:08:29 +01:00
helpers.rb provisioners/ansible: add basic config validators 2016-04-20 23:54:19 +02:00
plugin.rb Support ansible install on RedHat derivates and Fedora. 2015-12-07 15:44:20 +01:00