diff options
Diffstat (limited to 'lib/puppet/type/yumrepo.rb')
-rw-r--r-- | lib/puppet/type/yumrepo.rb | 57 |
1 files changed, 28 insertions, 29 deletions
diff --git a/lib/puppet/type/yumrepo.rb b/lib/puppet/type/yumrepo.rb index 36e95ebf1..b6aceb55c 100644 --- a/lib/puppet/type/yumrepo.rb +++ b/lib/puppet/type/yumrepo.rb @@ -52,16 +52,15 @@ module Puppet newtype(:yumrepo) do @doc = "The client-side description of a yum repository. Repository - configurations are found by parsing /etc/yum.conf and - the files indicated by reposdir in that file (see yum.conf(5) - for details) + configurations are found by parsing /etc/yum.conf and + the files indicated by reposdir in that file (see yum.conf(5) for details) - Most parameters are identical to the ones documented - in yum.conf(5) + Most parameters are identical to the ones documented + in yum.conf(5) - Continuation lines that yum supports for example for the - baseurl are not supported. No attempt is made to access - files included with the **include** directive" + Continuation lines that yum supports for example for the + baseurl are not supported. No attempt is made to access + files included with the **include** directive" class << self attr_accessor :filetype @@ -210,14 +209,14 @@ module Puppet newparam(:name) do desc "The name of the repository. This corresponds to the - repositoryid parameter in yum.conf(5)." + repositoryid parameter in yum.conf(5)." isnamevar end newproperty(:descr, :parent => Puppet::IniProperty) do desc "A human readable description of the repository. - This corresponds to the name parameter in yum.conf(5). - #{ABSENT_DOC}" + This corresponds to the name parameter in yum.conf(5). + #{ABSENT_DOC}" newvalue(:absent) { self.should = :absent } newvalue(/.*/) { } inikey "name" @@ -225,7 +224,7 @@ module Puppet newproperty(:mirrorlist, :parent => Puppet::IniProperty) do desc "The URL that holds the list of mirrors for this repository. - #{ABSENT_DOC}" + #{ABSENT_DOC}" newvalue(:absent) { self.should = :absent } # Should really check that it's a valid URL newvalue(/.*/) { } @@ -240,22 +239,22 @@ module Puppet newproperty(:enabled, :parent => Puppet::IniProperty) do desc "Whether this repository is enabled or disabled. Possible - values are '0', and '1'.\n#{ABSENT_DOC}" + values are '0', and '1'.\n#{ABSENT_DOC}" newvalue(:absent) { self.should = :absent } newvalue(%r{(0|1)}) { } end newproperty(:gpgcheck, :parent => Puppet::IniProperty) do desc "Whether to check the GPG signature on packages installed - from this repository. Possible values are '0', and '1'. - \n#{ABSENT_DOC}" + from this repository. Possible values are '0', and '1'. + \n#{ABSENT_DOC}" newvalue(:absent) { self.should = :absent } newvalue(%r{(0|1)}) { } end newproperty(:gpgkey, :parent => Puppet::IniProperty) do desc "The URL for the GPG key with which packages from this - repository are signed.\n#{ABSENT_DOC}" + repository are signed.\n#{ABSENT_DOC}" newvalue(:absent) { self.should = :absent } # Should really check that it's a valid URL newvalue(/.*/) { } @@ -270,24 +269,24 @@ module Puppet newproperty(:exclude, :parent => Puppet::IniProperty) do desc "List of shell globs. Matching packages will never be - considered in updates or installs for this repo. - #{ABSENT_DOC}" + considered in updates or installs for this repo. + #{ABSENT_DOC}" newvalue(:absent) { self.should = :absent } newvalue(/.*/) { } end newproperty(:includepkgs, :parent => Puppet::IniProperty) do desc "List of shell globs. If this is set, only packages - matching one of the globs will be considered for - update or install.\n#{ABSENT_DOC}" + matching one of the globs will be considered for + update or install.\n#{ABSENT_DOC}" newvalue(:absent) { self.should = :absent } newvalue(/.*/) { } end newproperty(:enablegroups, :parent => Puppet::IniProperty) do desc "Determines whether yum will allow the use of - package groups for this repository. Possible - values are '0', and '1'.\n#{ABSENT_DOC}" + package groups for this repository. Possible + values are '0', and '1'.\n#{ABSENT_DOC}" newvalue(:absent) { self.should = :absent } newvalue(%r{(0|1)}) { } end @@ -300,37 +299,37 @@ module Puppet newproperty(:keepalive, :parent => Puppet::IniProperty) do desc "Either '1' or '0'. This tells yum whether or not HTTP/1.1 - keepalive should be used with this repository.\n#{ABSENT_DOC}" + keepalive should be used with this repository.\n#{ABSENT_DOC}" newvalue(:absent) { self.should = :absent } newvalue(%r{(0|1)}) { } end newproperty(:timeout, :parent => Puppet::IniProperty) do desc "Number of seconds to wait for a connection before timing - out.\n#{ABSENT_DOC}" + out.\n#{ABSENT_DOC}" newvalue(:absent) { self.should = :absent } newvalue(%r{[0-9]+}) { } end newproperty(:metadata_expire, :parent => Puppet::IniProperty) do desc "Number of seconds after which the metadata will expire. - #{ABSENT_DOC}" + #{ABSENT_DOC}" newvalue(:absent) { self.should = :absent } 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}" + 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}" + the priorities plugin is installed and enabled. + #{ABSENT_DOC}" newvalue(:absent) { self.should = :absent } newvalue(%r{[1-9][0-9]?}) { } end |