cron minutes configurable as attribute

This commit is contained in:
John Tran 2013-05-07 21:59:31 +00:00
parent 835d198923
commit 214b7b8b31
2 changed files with 2 additions and 1 deletions

View File

@ -101,6 +101,7 @@ default["cinder"]["syslog"]["facility"] = "LOG_LOCAL2"
default["cinder"]["syslog"]["config_facility"] = "local2"
default["cinder"]["api"]["ratelimit"] = "True"
default["cinder"]["cron"]["minute"] = 10
default["cinder"]["volume"]["state_path"] = "/var/lib/cinder"
default["cinder"]["volume"]["volume_driver"] = "cinder.volume.driver.ISCSIDriver"

View File

@ -61,8 +61,8 @@ cookbook_file "/usr/local/bin/cinder-volume-usage-audit" do
group "root"
end
# cronjob run every minute
cron "cinder-volume-usage-audit" do
minute node["cinder"]["cron"]["minute"]
command "/usr/local/bin/cinder-volume-usage-audit > /var/log/cinder/audit.log 2>&1"
end