summaryrefslogtreecommitdiff
path: root/lib/puppet/provider
diff options
context:
space:
mode:
authorBen Ford <ben.ford@puppetlabs.com>2013-03-11 19:38:40 -0400
committerBen Ford <ben.ford@puppetlabs.com>2013-03-11 19:38:40 -0400
commit339fc275e77a0c80a14bb4a0e38318990d3fb3e9 (patch)
treea01f04762686da1624cde4f1b044d105b9e4477f /lib/puppet/provider
parent04851c28b12973c679fc9f234fd0f5a193df9d7a (diff)
downloadpuppet-vcsrepo-339fc275e77a0c80a14bb4a0e38318990d3fb3e9.tar.gz
puppet-vcsrepo-339fc275e77a0c80a14bb4a0e38318990d3fb3e9.tar.bz2
Create the repository with proper permissions.
Diffstat (limited to 'lib/puppet/provider')
-rw-r--r--lib/puppet/provider/vcsrepo/git.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb
index 9254243..6920c75 100644
--- a/lib/puppet/provider/vcsrepo/git.rb
+++ b/lib/puppet/provider/vcsrepo/git.rb
@@ -141,6 +141,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
else
# normal init
FileUtils.mkdir(@resource.value(:path))
+ FileUtils.chown(@resource.value(:user), nil, @resource.value(:path)) if @resource.value(:user)
args = ['init']
if @resource.value(:ensure) == :bare
args << '--bare'