Showing with 48 additions and 6 deletions.
  1. +8 −0 CHANGELOG.md
  2. +17 −2 REFERENCE.md
  3. +9 −0 lib/puppet/type/yumrepo.rb
  4. +9 −4 metadata.json
  5. +5 −0 spec/unit/type/yumrepo_spec.rb
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).

## [1.0.7](https://github.com/puppetlabs/puppetlabs-yumrepo_core/tree/1.0.7) (2020-04-13)

[Full Changelog](https://github.com/puppetlabs/puppetlabs-yumrepo_core/compare/1.0.6...1.0.7)

### Added

- \(MODULES-10617\) Add property module\_hotfixes [\#28](https://github.com/puppetlabs/puppetlabs-yumrepo_core/pull/28) ([seriv](https://github.com/seriv))

## [1.0.6](https://github.com/puppetlabs/puppetlabs-yumrepo_core/tree/1.0.6) (2019-12-19)

[Full Changelog](https://github.com/puppetlabs/puppetlabs-yumrepo_core/compare/1.0.5...1.0.6)
Expand Down
19 changes: 17 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ Valid values: YUM_BOOLEAN, absent
Whether yum will allow the use of package groups for this
repository.

##### `module_hotfixes`

Valid values: YUM_BOOLEAN, absent

Whether packages from this repo can be installed into modules.

##### `failovermethod`

Valid values: %r{^roundrobin|priority$}, absent
Expand Down Expand Up @@ -185,6 +191,15 @@ Priority of this repository. Can be any integer value
(including negative). Requires that the `priorities` plugin
is installed and enabled.

##### `minrate`

Valid values: %r{^\d+$}, absent

Sets the low speed threshold in bytes per second.
If the server is sending data slower than this for at least
`timeout` seconds, Yum aborts the connection. The default is
`1000`.

##### `throttle`

Valid values: %r{^\d+[kMG%]?$}, absent
Expand Down Expand Up @@ -215,8 +230,8 @@ Cost of this repository.
Valid values: %r{.*}, absent

URL of a proxy server that Yum should use when accessing this repository.
This attribute can also be set to `'_none_'`, which will make Yum bypass any
global proxy settings when accessing this repository.
This attribute can also be set to '_none_' (or '' for EL >= 8 only),
which will make Yum bypass any global proxy settings when accessing this repository.

##### `proxy_username`

Expand Down
9 changes: 9 additions & 0 deletions lib/puppet/type/yumrepo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@
munge(&munge_yum_bool)
end

newproperty(:module_hotfixes) do
desc "Whether packages from this repo can be installed into modules.
#{YUM_BOOLEAN_DOC}
#{ABSENT_DOC}"

newvalues(YUM_BOOLEAN, :absent)
munge(&munge_yum_bool)
end

newproperty(:failovermethod) do
desc "The failover method for this repository; should be either
`roundrobin` or `priority`. #{ABSENT_DOC}"
Expand Down
13 changes: 9 additions & 4 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "puppetlabs-yumrepo_core",
"version": "1.0.6",
"version": "1.0.7",
"author": "puppetlabs",
"summary": "Manage client yum repo configurations by parsing yum INI configuration files.",
"license": "Apache-2.0",
Expand All @@ -16,7 +16,8 @@
"operatingsystemrelease": [
"5",
"6",
"7"
"7",
"8"
]
},
{
Expand All @@ -32,7 +33,8 @@
"operatingsystemrelease": [
"5",
"6",
"7"
"7",
"8"
]
},
{
Expand All @@ -48,7 +50,10 @@
"operatingsystemrelease": [
"26",
"27",
"28"
"28",
"29",
"30",
"31"
]
}
],
Expand Down
5 changes: 5 additions & 0 deletions spec/unit/type/yumrepo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@
it_behaves_like 'a yumrepo parameter that can be absent', :enablegroups
end

describe 'module_hotfixes' do
it_behaves_like 'a yumrepo parameter that expects a boolean parameter', :module_hotfixes
it_behaves_like 'a yumrepo parameter that can be absent', :module_hotfixes
end

describe 'failovermethod' do
['roundrobin', 'priority'].each do |value|
it "accepts a value of #{value}" do
Expand Down