Merge "Allow keeping repo files since initially created"
This commit is contained in:
commit
76b9c8d960
|
@ -35,6 +35,10 @@
|
||||||
# (optional) A hash of repo files
|
# (optional) A hash of repo files
|
||||||
# Defaults to {}
|
# Defaults to {}
|
||||||
#
|
#
|
||||||
|
# [*repo_replace*]
|
||||||
|
# (optional) Replace repo files when their contents are changed
|
||||||
|
# Defaults to true
|
||||||
|
#
|
||||||
# [*repo_defaults*]
|
# [*repo_defaults*]
|
||||||
# (optional) The defaults for the yumrepo resources that will be
|
# (optional) The defaults for the yumrepo resources that will be
|
||||||
# created using create_resource.
|
# created using create_resource.
|
||||||
|
@ -81,6 +85,7 @@ class openstack_extras::repo::redhat::redhat(
|
||||||
$manage_epel = false,
|
$manage_epel = false,
|
||||||
$repo_hash = {},
|
$repo_hash = {},
|
||||||
$repo_source_hash = {},
|
$repo_source_hash = {},
|
||||||
|
$repo_replace = true,
|
||||||
$repo_defaults = {},
|
$repo_defaults = {},
|
||||||
$gpgkey_hash = {},
|
$gpgkey_hash = {},
|
||||||
$gpgkey_defaults = {},
|
$gpgkey_defaults = {},
|
||||||
|
@ -182,9 +187,10 @@ class openstack_extras::repo::redhat::redhat(
|
||||||
|
|
||||||
$repo_source_hash.each | $filename, $url | {
|
$repo_source_hash.each | $filename, $url | {
|
||||||
file { $filename:
|
file { $filename:
|
||||||
path => "/etc/yum.repos.d/${filename}",
|
path => "/etc/yum.repos.d/${filename}",
|
||||||
source => $url,
|
source => $url,
|
||||||
notify => Exec['yum_refresh'],
|
notify => Exec['yum_refresh'],
|
||||||
|
replace => $repo_replace,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
The new ``openstack_extras::repo::redhat::redhat::repo_replace`` parameter
|
||||||
|
has been added to enable or disable file replacement when original repo
|
||||||
|
files are updated.
|
Loading…
Reference in New Issue