diff options
| author | James Turnbull <james@lovedthanlost.net> | 2010-07-16 14:49:26 +1000 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2010-08-31 08:18:14 +1000 |
| commit | 8cd266e6d421c70db574751dc6d837bd0bbf386b (patch) | |
| tree | 1d3e63fcee5e4cae90fe9ecc3512aa1a065da3f6 | |
| parent | 0056d4174959a4f07d669eae7b6a768d18891594 (diff) | |
| download | puppet-8cd266e6d421c70db574751dc6d837bd0bbf386b.tar.gz puppet-8cd266e6d421c70db574751dc6d837bd0bbf386b.tar.xz puppet-8cd266e6d421c70db574751dc6d837bd0bbf386b.zip | |
Added cost parameter to the yumrepo type
| -rw-r--r-- | lib/puppet/type/yumrepo.rb | 6 |
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 } |
