cron minutes configurable as attribute
This commit is contained in:
parent
835d198923
commit
214b7b8b31
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue