summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2010-07-25 09:43:57 +1000
committerJames Turnbull <james@lovedthanlost.net>2010-08-31 08:18:26 +1000
commit8d248616c6dd05509a1a7d3f8f098c295c9eae43 (patch)
tree770c1ea5704321ccdc4a9356d4f4a96e2249d1db
parent8cd266e6d421c70db574751dc6d837bd0bbf386b (diff)
downloadpuppet-8d248616c6dd05509a1a7d3f8f098c295c9eae43.tar.gz
puppet-8d248616c6dd05509a1a7d3f8f098c295c9eae43.tar.xz
puppet-8d248616c6dd05509a1a7d3f8f098c295c9eae43.zip
Fixed #4100 - Added http_caching to yumrepo type
-rw-r--r--lib/puppet/type/yumrepo.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/type/yumrepo.rb b/lib/puppet/type/yumrepo.rb
index a3b35b34b..160b2164d 100644
--- a/lib/puppet/type/yumrepo.rb
+++ b/lib/puppet/type/yumrepo.rb
@@ -295,6 +295,12 @@ module Puppet
newvalue(%r{(0|1)}) { }
end
+ newproperty(:http_caching, :parent => Puppet::IniProperty) do
+ desc "Either 'packages' or 'all' or 'none'.\n#{ABSENT_DOC}"
+ newvalue(:absent) { self.should = :absent }
+ newvalue(%r(packages|all|none)) { }
+ end
+
newproperty(:timeout, :parent => Puppet::IniProperty) do
desc "Number of seconds to wait for a connection before timing
out.\n#{ABSENT_DOC}"