Add logging configuration to nova-api-proxy
Puppet manifests now include logging data to push to the conf file. This is needed for a subsequent code change to change the logging backend to oslo_log Change-Id: I303e199fd3c984af20564c43bdb98c460cbed0f1 Story: 2004007 Task: 27608 Signed-off-by: Lachlan Plant <lachlan.plant@windriver.com>
This commit is contained in:
parent
e721b39b09
commit
99323d74a9
@ -259,6 +259,9 @@ nova::network::neutron::default_floating_pool: 'public'
|
|||||||
|
|
||||||
nova_api_proxy::config::enabled: false
|
nova_api_proxy::config::enabled: false
|
||||||
nova_api_proxy::config::eventlet_pool_size: 256
|
nova_api_proxy::config::eventlet_pool_size: 256
|
||||||
|
nova_api_proxy::config::use_syslog: true
|
||||||
|
nova_api_proxy::config::log_facility: 'local5'
|
||||||
|
|
||||||
|
|
||||||
# this will trigger simple_setup for cell_v2
|
# this will trigger simple_setup for cell_v2
|
||||||
nova::db::sync_api::cellv2_setup: true
|
nova::db::sync_api::cellv2_setup: true
|
||||||
|
@ -34,6 +34,11 @@ class nova_api_proxy::config (
|
|||||||
$user_domain_name = 'Default',
|
$user_domain_name = 'Default',
|
||||||
$project_domain_name = 'Default',
|
$project_domain_name = 'Default',
|
||||||
$eventlet_pool_size = 128,
|
$eventlet_pool_size = 128,
|
||||||
|
$use_syslog = false,
|
||||||
|
$log_facility = 'LOG_USER',
|
||||||
|
$use_stderr = false,
|
||||||
|
$log_file = 'nova-api-proxy.log',
|
||||||
|
$log_dir = '/var/log/nova',
|
||||||
) {
|
) {
|
||||||
|
|
||||||
# SSL Options
|
# SSL Options
|
||||||
@ -78,6 +83,20 @@ class nova_api_proxy::config (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $use_syslog {
|
||||||
|
proxy_config {
|
||||||
|
'DEFAULT/use_syslog': value => true;
|
||||||
|
'DEFAULT/syslog_log_facility': value => $log_facility;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
proxy_config {
|
||||||
|
'DEFAULT/use_syslog': value => false;
|
||||||
|
'DEFAULT/use_stderr': value => false;
|
||||||
|
'DEFAULT/log_file' : value => $log_file;
|
||||||
|
'DEFAULT/log_dir' : value => $log_dir;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if $auth_uri {
|
if $auth_uri {
|
||||||
$auth_uri_real = $auth_uri
|
$auth_uri_real = $auth_uri
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user