]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/community/templates/default/data.yml.erb
mailman: automate year match code
[chef.git] / cookbooks / community / templates / default / data.yml.erb
index f18668e3d9ddfee4d018093ef04c048e4e82d203..10cc507c9f430416d7872f829dc931164f945c66 100644 (file)
@@ -3,7 +3,7 @@
 #
 
 templates:
 #
 
 templates:
-  - "templates/postgres.template.yml"
+  - "templates/postgres.13.template.yml"
   - "templates/redis.template.yml"
 
 # any extra arguments for Docker?
   - "templates/redis.template.yml"
 
 # any extra arguments for Docker?
@@ -42,3 +42,9 @@ hooks:
         cmd: su - postgres -c 'psql discourse'
 
         raise_on_fail: false
         cmd: su - postgres -c 'psql discourse'
 
         raise_on_fail: false
+    - file:
+        path: /var/spool/cron/crontabs/postgres
+        contents: |
+          # m h  dom mon dow   command
+          # MAILTO=?
+          0 4 * * * /var/lib/postgresql/take-database-backup