summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2015-05-13 15:50:12 -0700
committerMorgan Haskel <morgan@puppetlabs.com>2015-05-13 15:50:12 -0700
commitaaa5d87d966df4c4f7d54ca4fd878ac794a8dc8f (patch)
tree7c39b8a4a5cd7f8bceb875cbedfda52696c835be
parent4cc3383f3e22edb31a03a3dad7817734529781ee (diff)
parent7f97a76f4682a7c1d5bfbbc3cd5a6dd9523b1d96 (diff)
downloadpuppet-vcsrepo-aaa5d87d966df4c4f7d54ca4fd878ac794a8dc8f.tar.gz
puppet-vcsrepo-aaa5d87d966df4c4f7d54ca4fd878ac794a8dc8f.tar.bz2
Merge pull request #248 from hunner/fix_tmp
(MODULES-821) Don't use /tmp
-rw-r--r--lib/puppet/provider/vcsrepo/git.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb
index 8101253..44e4d04 100644
--- a/lib/puppet/provider/vcsrepo/git.rb
+++ b/lib/puppet/provider/vcsrepo/git.rb
@@ -418,7 +418,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
# @!visibility private
def git_with_identity(*args)
if @resource.value(:identity)
- Tempfile.open('git-helper') do |f|
+ Tempfile.open('git-helper', Puppet[:statedir]) do |f|
f.puts '#!/bin/sh'
f.puts "exec ssh -oStrictHostKeyChecking=no -oPasswordAuthentication=no -oKbdInteractiveAuthentication=no -oChallengeResponseAuthentication=no -oConnectTimeout=120 -i #{@resource.value(:identity)} $*"
f.close