summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorzane <zane@mochimedia.com>2013-07-17 20:32:26 -0700
committerzane <zane@mochimedia.com>2013-07-17 20:32:26 -0700
commit129f2de0d3495ac6f6cc7b76a00bff8bfcd9c128 (patch)
tree8fe1b2dd36ce105a8f54e1f47d059ba232b01702 /lib
parent1dcc84e5ee71eb0b85622affc7f097f9b02cb5d9 (diff)
downloadpuppet-vcsrepo-129f2de0d3495ac6f6cc7b76a00bff8bfcd9c128.tar.gz
puppet-vcsrepo-129f2de0d3495ac6f6cc7b76a00bff8bfcd9c128.tar.bz2
Adding svn configuration parameter, and docs
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/provider/vcsrepo/svn.rb6
-rw-r--r--lib/puppet/type/vcsrepo.rb7
2 files changed, 12 insertions, 1 deletions
diff --git a/lib/puppet/provider/vcsrepo/svn.rb b/lib/puppet/provider/vcsrepo/svn.rb
index 2dc0fd1..2e7cda5 100644
--- a/lib/puppet/provider/vcsrepo/svn.rb
+++ b/lib/puppet/provider/vcsrepo/svn.rb
@@ -6,7 +6,7 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo)
optional_commands :svn => 'svn',
:svnadmin => 'svnadmin'
- has_features :filesystem_types, :reference_tracking, :basic_auth
+ has_features :filesystem_types, :reference_tracking, :basic_auth, :configuration
def create
if !@resource.value(:source)
@@ -53,6 +53,10 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo)
args.push('--force')
end
+ if @resource.value(:configuration)
+ args.push('--config-dir', @resource.value(:configuration))
+ end
+
return args
end
diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb
index 45ac455..fc20f75 100644
--- a/lib/puppet/type/vcsrepo.rb
+++ b/lib/puppet/type/vcsrepo.rb
@@ -30,6 +30,9 @@ Puppet::Type.newtype(:vcsrepo) do
feature :multiple_remotes,
"The repository tracks multiple remote repositories"
+
+ feature :configuration,
+ "The configuration directory to use"
ensurable do
attr_accessor :latest
@@ -176,5 +179,9 @@ Puppet::Type.newtype(:vcsrepo) do
desc "The remote repository to track"
defaultto "origin"
end
+
+ newparam :configuration, :required_features => [:configuration] do
+ desc "The configuration directory to use"
+ end
end