summaryrefslogtreecommitdiff
path: root/lib/puppet
diff options
context:
space:
mode:
authorPaul Allen <pallen@perforce.com>2014-06-23 16:22:35 +0100
committerPaul Allen <pallen@perforce.com>2014-06-23 16:22:35 +0100
commit457035ec1c15df0d53abf7232dad63b2722b1720 (patch)
treef629a9955235b81e6b16f69a7521fc8bcf6339d8 /lib/puppet
parent319f9fbe1954fd172da638f3ccd76e58c3ec8c7f (diff)
downloadpuppet-vcsrepo-457035ec1c15df0d53abf7232dad63b2722b1720.tar.gz
puppet-vcsrepo-457035ec1c15df0d53abf7232dad63b2722b1720.tar.bz2
Add hostname to Digest for default client name.
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/provider/vcsrepo/p4.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/provider/vcsrepo/p4.rb b/lib/puppet/provider/vcsrepo/p4.rb
index ec40cf3..612cc56 100644
--- a/lib/puppet/provider/vcsrepo/p4.rb
+++ b/lib/puppet/provider/vcsrepo/p4.rb
@@ -106,7 +106,8 @@ Puppet::Type.type(:vcsrepo).provide(:p4, :parent => Puppet::Provider::Vcsrepo) d
# default (generated) client name
path = @resource.value(:path)
- default = "puppet-" + Digest::MD5.hexdigest(path)
+ host = Facter.value('hostname')
+ default = "puppet-" + Digest::MD5.hexdigest(path + host)
# check config for client name
set_client = nil