Merge pull request #45 from jhtran/add_syslog

add syslog
This commit is contained in:
jaypipes 2013-03-20 12:15:32 -07:00
commit 30f095ffda
4 changed files with 15 additions and 6 deletions

View File

@ -22,6 +22,10 @@ class ::Chef::Recipe
include ::Openstack include ::Openstack
end end
if node["cinder"]["syslog"]["use"]
include_recipe "openstack-common::logging"
end
platform_options = node["cinder"]["platform"] platform_options = node["cinder"]["platform"]
platform_options["cinder_api_packages"].each do |pkg| platform_options["cinder_api_packages"].each do |pkg|

View File

@ -18,6 +18,10 @@
# limitations under the License. # limitations under the License.
# #
if node["cinder"]["syslog"]["use"]
include_recipe "openstack-common::logging"
end
platform_options = node["cinder"]["platform"] platform_options = node["cinder"]["platform"]
platform_options["cinder_scheduler_packages"].each do |pkg| platform_options["cinder_scheduler_packages"].each do |pkg|

View File

@ -22,6 +22,10 @@ class ::Chef::Recipe
include ::Openstack include ::Openstack
end end
if node["cinder"]["syslog"]["use"]
include_recipe "openstack-common::logging"
end
platform_options = node["cinder"]["platform"] platform_options = node["cinder"]["platform"]
platform_options["cinder_volume_packages"].each do |pkg| platform_options["cinder_volume_packages"].each do |pkg|

View File

@ -35,12 +35,9 @@ verbose=<%= node["cinder"]["verbose"] %>
# ================= Syslog Options ============================ # ================= Syslog Options ============================
# Send logs to syslog (/dev/log) instead of to file specified <% if node["cinder"]["syslog"]["use"] %>
# by `log_file` log_config = /etc/openstack/logging.conf
use_syslog=<%= node["cinder"]["syslog"]["use"] %> <% end %>
# Facility to use. If unset defaults to LOG_USER.
syslog_log_facility=<%= node["cinder"]["syslog"]["facility"]%>
######## defined in cinder.flags ######## ######## defined in cinder.flags ########