adding syslog functionality

This commit is contained in:
yolanda.robla@canonical.com 2014-02-03 12:58:43 +01:00
parent 84584ed451
commit bc1da09487
3 changed files with 9 additions and 1 deletions

View File

@ -83,6 +83,12 @@ options:
default: RegionOne
type: string
description: "OpenStack Region(s) - separate multiple regions with single space"
use-syslog:
type: boolean
default: False
description: |
By default, all services will log into their corresponding log files.
Setting this to True will force all services to log to the syslog.
# HA configuration settings
vip:
type: string

View File

@ -115,6 +115,7 @@ def install_hook():
public_port=cluster.determine_api_port(config["service-port"]))
update_config_block('DEFAULT',
admin_port=cluster.determine_api_port(config["admin-port"]))
update_config_block('DEFAULT', use_syslog=config["use-syslog"])
set_admin_token(config['admin-token'])
# set all backends to use sql+sqlite, if they are not already by default
@ -424,6 +425,7 @@ def config_changed():
update_config_block('logger_root', level=config['log-level'],
file='/etc/keystone/logging.conf')
update_config_block('DEFAULT', use_syslog=config["use-syslog"])
if get_os_version_package('keystone') >= '2013.1':
# PKI introduced in Grizzly
configure_pki_tokens(config)

View File

@ -1 +1 @@
228
229