From 4d2942edc26e7cd144a3178a1a7f6470ea401345 Mon Sep 17 00:00:00 2001 From: Eric Hayes Date: Fri, 29 Jun 2012 02:50:12 -0700 Subject: Run git operations as a specific user (puppetlabs ticket 4773), added ssh options to ensure no prompting (also fixed in pull request #1 by riseuplabs), added ability to keep repository up to date with latest (puppetlabs ticket 11278) --- lib/puppet/type/vcsrepo.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/puppet/type/vcsrepo.rb') diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb index 231ce93..352f439 100644 --- a/lib/puppet/type/vcsrepo.rb +++ b/lib/puppet/type/vcsrepo.rb @@ -21,6 +21,9 @@ Puppet::Type.newtype(:vcsrepo) do feature :ssh_identity, "The provider supports a configurable SSH identity file" + + feature :user, + "The provider can run as a different user" feature :modules, "The repository contains modules that can be chosen of" @@ -49,6 +52,7 @@ Puppet::Type.newtype(:vcsrepo) do end newvalue :present do + notice "Creating repository from present" provider.create end @@ -75,6 +79,7 @@ Puppet::Type.newtype(:vcsrepo) do notice "Updating to latest '#{reference}' revision" provider.revision = reference else + notice "Creating repository from latest" provider.create end end @@ -128,6 +133,10 @@ Puppet::Type.newtype(:vcsrepo) do desc "The group/gid that owns the repository files" end + newparam :user do + desc "The user to run for repository operations" + end + newparam :excludes do desc "Files to be excluded from the repository" end -- cgit v1.2.3