diff options
author | Eric Hayes <eric@inflection.com> | 2012-06-29 02:50:12 -0700 |
---|---|---|
committer | Eric Hayes <eric@inflection.com> | 2012-06-29 02:50:12 -0700 |
commit | 4d2942edc26e7cd144a3178a1a7f6470ea401345 (patch) | |
tree | fb6c2e882f31389822259a8c1117086a2cb5a37a /lib/puppet/type | |
parent | 493dc2172bd01dcb4f47e4233292cd3dcdea08b9 (diff) |
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)
Diffstat (limited to 'lib/puppet/type')
-rw-r--r-- | lib/puppet/type/vcsrepo.rb | 9 |
1 files changed, 9 insertions, 0 deletions
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 |