Enable keystone logging on debian

This commit enables keystone logging to /var/log/keystone/keystone.log
and makes the default log level as INFO.

Test plan:

PASS: Full build, install, bootstrap and unlock
PASS: Run authenticated commands such as 'system host-list' and verify
      that it gets logged to /var/log/keystone/keystone.log

Story: 2011106
Task: 50067

Signed-off-by: Rei Oliveira <Reinildes.JoseMateusOliveira@windriver.com>
Change-Id: I8cb1dce87ff1a46253573c48ce340be902292008
This commit is contained in:
Rei Oliveira 2024-05-09 11:29:16 -03:00 committed by Reinildes Oliveira
parent 494fbef3bb
commit 29471b23fb
2 changed files with 9 additions and 0 deletions

View File

@ -174,6 +174,7 @@ keystone::enable_bootstrap: false
keystone::sync_db: false
keystone::enable_proxy_headers_parsing: true
keystone::log_file: /dev/null
keystone::logging::log_config_append : '/etc/keystone/logging.conf'
keystone::endpoint::default_domain: 'Default'
keystone::endpoint::version: 'v3'

View File

@ -311,6 +311,14 @@ class openstack::keystone::bootstrap(
keystone_role { '_member_':
ensure => present,
}
ini_setting { 'Set keystone default log level to INFO':
ensure => present,
path => '/etc/keystone/logging.conf',
section => 'logger_root',
setting => 'level',
value => 'INFO',
}
}
}