puppetlabs/puppet — pull request #253 by jamtur01 (2011-12-07 22:01:11+00:00)
Title: Tickets/master/11263

Two patches:

1. The metadata_expire option of the yumrepo type has the wrong regex match for it’s available options. We only match seconds but the option can in fact take:

metadata_expire Time (in seconds) after which the metadata will expire. So that if the current metadata downloaded is less than this many seconds old then yum will not update the metadata against the repository. If you find that yum is not downloading information on updates as often as you would like lower the value of this option. You can also change from the default of using seconds to using days, hours or minutes by appending a d, h or m respectively. The default is 6 hours, to compliment yum-updatesd running once an hour. It’s also possible to use the word “never”, meaning that the metadata will never expire. Note that when using a metalink file the metalink must always be newer than the metadata for the repository, due to the validation, so this timeout also applies to the metalink file.

2. Added a number of new yumrepo attributes that were missing from the type.