openstack-ansible-openstack.../templates/sysstat.cron.debian.j2
Marc Gariepy 85ecc37e11 Only configure systat on debian based system.
template systat cron for centos

only install /etc/default/systat on ubuntu
/etc/default/sysstat only configure debian-sa1 which is not on centos

introduce 2 vars :
 openstack_host_sysstat_file
 openstack_host_cron_template

Change-Id: Ib4fde6e4b9d3ce23524a5b5a17dbf15065bbeb4c
2016-09-02 11:15:15 -04:00

11 lines
493 B
Django/Jinja

# {{ ansible_managed }}
# The first element of the path is a directory where the debian-sa1 script is located
PATH=/usr/lib/sysstat:/usr/sbin:/usr/sbin:/usr/bin:/sbin:/bin
# Activity reports every 10 minutes everyday
*/{{ openstack_host_sysstat_interval }} * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1
# Additional run at 23:59 to rotate the statistics file
59 {{ openstack_host_sysstat_statistics_hour }} * * * root command -v debian-sa1 > /dev/null && debian-sa1 60 2