fix ldap packages for keystone backend
When puppet runs it will try to install python-ldap and python-ldappool. Each run will install one or the other due to the other package settings telling the package manager to uninstall it. Change-Id: I13a0af479dcac45ff77685f5eccfb865f7dab0f5 Closes-Bug: #1709519
This commit is contained in:
parent
19e4cfffe0
commit
8ba0d32d5b
@ -473,8 +473,7 @@ class keystone::ldap(
|
||||
include ::keystone::deps
|
||||
|
||||
if $manage_packages {
|
||||
$ldap_packages = ['python-ldap', 'python-ldappool']
|
||||
ensure_resource('package', $ldap_packages, { ensure => $package_ensure,
|
||||
ensure_resource('package', 'python-ldappool', { ensure => $package_ensure,
|
||||
tag => 'keystone-package' })
|
||||
}
|
||||
|
||||
|
@ -500,8 +500,7 @@ and \"${domain_dir_enabled}\" for identity/domain_config_dir"
|
||||
$domain = $name
|
||||
|
||||
if $manage_packages {
|
||||
$ldap_packages = ['python-ldap', 'python-ldappool']
|
||||
ensure_resource('package', $ldap_packages, {
|
||||
ensure_resource('package', 'python-ldappool', {
|
||||
ensure => $package_ensure,
|
||||
tag => ['openstack', 'keystone-package'],
|
||||
})
|
||||
|
@ -0,0 +1,3 @@
|
||||
---
|
||||
fixes:
|
||||
- issue with python-ldappool and python-ldap uninstalling each other each run.
|
@ -79,7 +79,6 @@ describe 'keystone::ldap' do
|
||||
:auth_pool_connection_lifetime => 200,
|
||||
}
|
||||
end
|
||||
it { is_expected.to contain_package('python-ldap') }
|
||||
it { is_expected.to contain_package('python-ldappool') }
|
||||
it 'should have basic params' do
|
||||
# basic params
|
||||
@ -180,7 +179,6 @@ describe 'keystone::ldap' do
|
||||
let :params do
|
||||
{ :manage_packages => false }
|
||||
end
|
||||
it { is_expected.to_not contain_package('python-ldap') }
|
||||
it { is_expected.to_not contain_package('python-ldappool') }
|
||||
end
|
||||
|
||||
|
@ -100,7 +100,6 @@ describe 'keystone::ldap_backend' do
|
||||
:auth_pool_connection_lifetime => 200,
|
||||
}
|
||||
end
|
||||
it { is_expected.to contain_package('python-ldap') }
|
||||
it { is_expected.to contain_package('python-ldappool') }
|
||||
it 'should have basic params' do
|
||||
# basic params
|
||||
|
Loading…
Reference in New Issue
Block a user