]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
public_facing: Add cronjobs for www.ceph.com 314/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 21 Mar 2017 15:34:25 +0000 (11:34 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 21 Mar 2017 15:39:38 +0000 (11:39 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/public_facing/tasks/www.ceph.com.yml [new file with mode: 0644]

diff --git a/roles/public_facing/tasks/www.ceph.com.yml b/roles/public_facing/tasks/www.ceph.com.yml
new file mode 100644 (file)
index 0000000..26dfbe6
--- /dev/null
@@ -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"