openstack-ansible-openstack.../templates/sysstat.cron.redhat.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

9 lines
379 B
Django/Jinja

# {{ ansible_managed }}
# Run system activity accounting tool every 10 minutes
*/{{ openstack_host_sysstat_interval }} * * * * root /usr/lib64/sa/sa1 1 1
# 0 * * * * root /usr/lib64/sa/sa1 600 6 &
# Generate a daily summary of process accounting at {{ openstack_host_sysstat_statistics_hour }}:59
59 {{ openstack_host_sysstat_statistics_hour }} * * * root /usr/lib64/sa/sa2 -A