diff options
author | lutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-06-01 22:12:28 +0000 |
---|---|---|
committer | lutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-06-01 22:12:28 +0000 |
commit | f2c524dd17585dbdab15a0c0edebb11912018741 (patch) | |
tree | b9f027ee07ad1069adc858a3839e22273825084c | |
parent | 0a2b43808b461f585cc890781dd9c3e49ae815e3 (diff) | |
download | puppet-f2c524dd17585dbdab15a0c0edebb11912018741.tar.gz puppet-f2c524dd17585dbdab15a0c0edebb11912018741.tar.xz puppet-f2c524dd17585dbdab15a0c0edebb11912018741.zip |
Add protect and priority properties; patch provided by Matt Hyclak
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2547 980ebf18-57e1-0310-9a29-db15c13687c0
-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 |