summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2010-07-16 14:49:26 +1000
committerJames Turnbull <james@lovedthanlost.net>2010-08-31 08:18:14 +1000
commit8cd266e6d421c70db574751dc6d837bd0bbf386b (patch)
tree1d3e63fcee5e4cae90fe9ecc3512aa1a065da3f6
parent0056d4174959a4f07d669eae7b6a768d18891594 (diff)
downloadpuppet-8cd266e6d421c70db574751dc6d837bd0bbf386b.tar.gz
puppet-8cd266e6d421c70db574751dc6d837bd0bbf386b.tar.xz
puppet-8cd266e6d421c70db574751dc6d837bd0bbf386b.zip
Added cost parameter to the 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 698c077f4..a3b35b34b 100644
--- a/lib/puppet/type/yumrepo.rb
+++ b/lib/puppet/type/yumrepo.rb
@@ -325,6 +325,12 @@ module Puppet
newvalue(%r{[1-9][0-9]?}) { }
end
+ newproperty(:cost, :parent => Puppet::IniProperty) do
+ desc "Cost of this repository.\n#{ABSENT_DOC}"
+ newvalue(:absent) { self.should = :absent }
+ newvalue(%r{\d+}) { }
+ end
+
newproperty(:proxy, :parent => Puppet::IniProperty) do
desc "URL to the proxy server for this repository.\n#{ABSENT_DOC}"
newvalue(:absent) { self.should = :absent }