Barbican add ability to use global logging.conf
Add ability to use global logging.conf template which can be
used in all openstack components which support oslo.log
Change-Id: I2867fcc83a54e005c65d6c5f4ed30933ba7abfa5
Related-Prod: PROD-21353
diff --git a/metadata/service/server/cluster.yml b/metadata/service/server/cluster.yml
index 4a7128e..f1945f9 100644
--- a/metadata/service/server/cluster.yml
+++ b/metadata/service/server/cluster.yml
@@ -4,6 +4,9 @@
- service.barbican.support
parameters:
_param:
+ openstack_log_appender: false
+ openstack_fluentd_handler_enabled: false
+ openstack_ossyslog_handler_enabled: false
keystone_barbican_endpoint_type: internalURL
cluster_internal_protocol: 'http'
barbican_service_protocol: ${_param:cluster_internal_protocol}
@@ -14,6 +17,15 @@
region: ${_param:openstack_region}
host_href: "${_param:barbican_service_protocol}://${_param:cluster_vip_address}:9311"
is_proxied: true
+ logging:
+ log_appender: ${_param:openstack_log_appender}
+ log_handlers:
+ watchedfile:
+ enabled: true
+ fluentd:
+ enabled: ${_param:openstack_fluentd_handler_enabled}
+ ossyslog:
+ enabled: ${_param:openstack_ossyslog_handler_enabled}
bind:
address: ${_param:cluster_local_address}
port: 9311
diff --git a/metadata/service/server/single.yml b/metadata/service/server/single.yml
index fdfac1b..a2a73e4 100644
--- a/metadata/service/server/single.yml
+++ b/metadata/service/server/single.yml
@@ -4,6 +4,9 @@
- service.barbican.support
parameters:
_param:
+ openstack_log_appender: false
+ openstack_fluentd_handler_enabled: false
+ openstack_ossyslog_handler_enabled: false
keystone_barbican_endpoint_type: internalURL
barbican_service_protocol: 'http'
barbican:
@@ -13,6 +16,15 @@
region: ${_param:openstack_region}
host_href: "${_param:barbican_service_protocol}://${_param:single_address}:9311"
is_proxied: false
+ logging:
+ log_appender: ${_param:openstack_log_appender}
+ log_handlers:
+ watchedfile:
+ enabled: true
+ fluentd:
+ enabled: ${_param:openstack_fluentd_handler_enabled}
+ ossyslog:
+ enabled: ${_param:openstack_ossyslog_handler_enabled}
bind:
address: ${_param:single_address}
port: 9311
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
index ea53a7f..804a555 100644
--- a/metadata/service/support.yml
+++ b/metadata/service/support.yml
@@ -9,3 +9,5 @@
enabled: false
sphinx:
enabled: true
+ fluentd:
+ enabled: true