Add daily cron job for capacity audit
This commit is contained in:
parent
3feddab2ae
commit
6abdb5859f
|
@ -107,4 +107,11 @@ class nailgun::venv(
|
|||
require => Exec["nailgun_syncdb"],
|
||||
}
|
||||
|
||||
file {"/etc/cron.daily/capacity":
|
||||
content => template("nailgun/cron_daily_capacity.erb"),
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => 0644
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
curl -X PUT -d {} http://localhost:8000/api/capacity
|
Loading…
Reference in New Issue