diff options
| -rw-r--r-- | lib/puppet/type/yumrepo.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/puppet/type/yumrepo.rb b/lib/puppet/type/yumrepo.rb index ac8704434..395a33068 100644 --- a/lib/puppet/type/yumrepo.rb +++ b/lib/puppet/type/yumrepo.rb @@ -331,6 +331,22 @@ module Puppet newvalue(%r{[0-9]+}) { } end + newproperty(:protect, :parent => Puppet::IniProperty) do + desc "Enable or disable protection for this repository. Requires + that the protectbase plugin is installed and enabled. + #{ABSENT_DOC}" + newvalue(:absent) { self.should = :absent } + newvalue(%r{(0|1)}) { } + end + + newproperty(:priority, :parent => Puppet::IniProperty) do + desc "Priority of this repository from 1-99. Requires that + the priorities plugin is installed and enabled. + #{ABSENT_DOC}" + newvalue(:absent) { self.should = :absent } + newvalue(%r{[1-9][0-9]?}) { } + end + end |
