From: David Galloway Date: Tue, 21 Mar 2017 15:34:25 +0000 (-0400) Subject: public_facing: Add cronjobs for www.ceph.com X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F314%2Fhead;p=ceph-cm-ansible.git public_facing: Add cronjobs for www.ceph.com Signed-off-by: David Galloway --- diff --git a/roles/public_facing/tasks/www.ceph.com.yml b/roles/public_facing/tasks/www.ceph.com.yml new file mode 100644 index 00000000..26dfbe6a --- /dev/null +++ b/roles/public_facing/tasks/www.ceph.com.yml @@ -0,0 +1,26 @@ +--- +- name: Cron entry for letsencrypt cert renewal + cron: + name: "Renew letsencrypt certificate" + minute: "0" + hour: "0" + day: "1,15" + job: "/usr/bin/letsencrypt renew >> /var/log/letsencrypt.log" + +- name: Cron entry for reloading nginx + cron: + name: "Reload nginx to keep SSL cert updated" + minute: "5" + hour: "0" + day: "1,15" + job: "/bin/systemctl reload nginx" + +# Wordpress has its own cron system that only runs queued jobs when the site +# is visited. We want certain jobs to run regardless of page visits. +# 5 minutes was used because that's the most frequent any job is queued. +# See http://docs.wprssaggregator.com/cron-intervals/#getting-around-the-limitations +- name: Cron entry for Wordpress cron + cron: + name: "Call wp-cron.php to run Wordpress cronjobs" + minute: "*/5" + job: "/usr/bin/wget -q -O - http://ceph.com/wp-cron.php?doing_wp_cron"