Install correct Python YAML package on CentOS/RH.
* modules/jeepyb/manifests/init.pp: Special-case the Python YAML bindings package name depending on facter osfamily. Change-Id: Iaa11e601e387428040a5d992219bd67812d8bac8 Reviewed-on: https://review.openstack.org/28652 Approved: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
This commit is contained in:
parent
a5846e0f02
commit
fecca12dee
@ -37,9 +37,23 @@ class jeepyb (
|
|||||||
|
|
||||||
# A lot of things need yaml, be conservative requiring this package to avoid
|
# A lot of things need yaml, be conservative requiring this package to avoid
|
||||||
# conflicts with other modules.
|
# conflicts with other modules.
|
||||||
if ! defined(Package['python-yaml']) {
|
case $::osfamily {
|
||||||
package { 'python-yaml':
|
'Debian': {
|
||||||
ensure => present,
|
if ! defined(Package['python-yaml']) {
|
||||||
|
package { 'python-yaml':
|
||||||
|
ensure => present,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'RedHat': {
|
||||||
|
if ! defined(Package['PyYAML']) {
|
||||||
|
package { 'PyYAML':
|
||||||
|
ensure => present,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
fail("Unsupported osfamily: ${::osfamily} The 'jeepyb' module only supports osfamily Debian or RedHat.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user