adding syslog functionality
This commit is contained in:
parent
84584ed451
commit
bc1da09487
@ -83,6 +83,12 @@ options:
|
|||||||
default: RegionOne
|
default: RegionOne
|
||||||
type: string
|
type: string
|
||||||
description: "OpenStack Region(s) - separate multiple regions with single space"
|
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
|
# HA configuration settings
|
||||||
vip:
|
vip:
|
||||||
type: string
|
type: string
|
||||||
|
@ -115,6 +115,7 @@ def install_hook():
|
|||||||
public_port=cluster.determine_api_port(config["service-port"]))
|
public_port=cluster.determine_api_port(config["service-port"]))
|
||||||
update_config_block('DEFAULT',
|
update_config_block('DEFAULT',
|
||||||
admin_port=cluster.determine_api_port(config["admin-port"]))
|
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_admin_token(config['admin-token'])
|
||||||
|
|
||||||
# set all backends to use sql+sqlite, if they are not already by default
|
# 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'],
|
update_config_block('logger_root', level=config['log-level'],
|
||||||
file='/etc/keystone/logging.conf')
|
file='/etc/keystone/logging.conf')
|
||||||
|
update_config_block('DEFAULT', use_syslog=config["use-syslog"])
|
||||||
if get_os_version_package('keystone') >= '2013.1':
|
if get_os_version_package('keystone') >= '2013.1':
|
||||||
# PKI introduced in Grizzly
|
# PKI introduced in Grizzly
|
||||||
configure_pki_tokens(config)
|
configure_pki_tokens(config)
|
||||||
|
Loading…
Reference in New Issue
Block a user