add syslog
This commit is contained in:
parent
5a10b120b5
commit
26a2105e46
|
@ -24,6 +24,10 @@ class ::Chef::Recipe
|
|||
include ::Openstack
|
||||
end
|
||||
|
||||
if node["cinder"]["syslog"]["use"]
|
||||
include_recipe "openstack-common::logging"
|
||||
end
|
||||
|
||||
platform_options = node["cinder"]["platform"]
|
||||
|
||||
platform_options["cinder_api_packages"].each do |pkg|
|
||||
|
|
|
@ -18,6 +18,10 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
if node["cinder"]["syslog"]["use"]
|
||||
include_recipe "openstack-common::logging"
|
||||
end
|
||||
|
||||
platform_options = node["cinder"]["platform"]
|
||||
|
||||
platform_options["cinder_scheduler_packages"].each do |pkg|
|
||||
|
|
|
@ -22,6 +22,10 @@ class ::Chef::Recipe
|
|||
include ::Openstack
|
||||
end
|
||||
|
||||
if node["cinder"]["syslog"]["use"]
|
||||
include_recipe "openstack-common::logging"
|
||||
end
|
||||
|
||||
platform_options = node["cinder"]["platform"]
|
||||
|
||||
platform_options["cinder_volume_packages"].each do |pkg|
|
||||
|
|
|
@ -35,12 +35,9 @@ verbose=<%= node["cinder"]["verbose"] %>
|
|||
|
||||
# ================= Syslog Options ============================
|
||||
|
||||
# Send logs to syslog (/dev/log) instead of to file specified
|
||||
# by `log_file`
|
||||
use_syslog=<%= node["cinder"]["syslog"]["use"] %>
|
||||
|
||||
# Facility to use. If unset defaults to LOG_USER.
|
||||
syslog_log_facility=<%= node["cinder"]["syslog"]["facility"]%>
|
||||
<% if node["cinder"]["syslog"]["use"] %>
|
||||
log_config = /etc/openstack/logging.conf
|
||||
<% end %>
|
||||
|
||||
######## defined in cinder.flags ########
|
||||
|
||||
|
|
Loading…
Reference in New Issue