Empty keystone.conf apache2 vhost

Normally the keystone.conf is removed to make sure the
default configuration provided in the keystone package
for Ubuntu is skipped. This will cause issues when upgrading
the keystone package since the keystone.postinst script when
upgrading will look for that file. [1]
Instead we should make sure this file is empty which will make
sure upgrading the package is possible without manual intervention.
This does not affect gate per se but will act as a guideline on how
it should be used.
[1] https://bugs.launchpad.net/ubuntu/+source/keystone/+bug/1737697
Closes-Bug: #1737697
Change-Id: Ia69a11614a1fdd32a4903b47427fe3e6a48f9205
This commit is contained in:
Tobias Urdin
2018年01月19日 12:14:09 +01:00
parent c51ab6ef91
commit f6910d2c3f

View File

@@ -103,14 +103,17 @@ class openstack_integration::keystone (
ssl_cert=>$::openstack_integration::params::cert_path,
workers=>2,
}
#WorkaroundtopurgeKeystonevhostthatisprovided&activatedbydefaultwithrunning
#Canonicalpackaging(called'keystone').
#WorkaroundtoemptyKeystonevhostthatisprovided&activatedbydefaultwithrunning
#Canonicalpackaging(called'keystone').Thiswillmakesureupgradingthepackageis
#possible,seehttps://bugs.launchpad.net/ubuntu/+source/keystone/+bug/1737697
if($::operatingsystem=='Ubuntu')and(versioncmp($::operatingsystemmajrelease,'16')>=0){
ensure_resource('file', '/etc/apache2/sites-available/keystone.conf', {
'ensure' => 'absent',
'ensure' => 'present',
'content' => '',
})
ensure_resource('file','/etc/apache2/sites-enabled/keystone.conf',{
'ensure' => 'absent',
'ensure' => 'present',
'content' => '',
})
Package['keystone']->File['/etc/apache2/sites-available/keystone.conf']
Reference in New Issue
openstack/puppet-openstack-integration
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.