pbsready-export.cfg.in 1.25 KB
Newer Older
1
[buildout]
2

3
extends = ${pbsready:output}
4

5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# Explicitely define extended parts from pbsready
# then add local parts
parts =
  resiliency
  logrotate
  logrotate-entry-cron
  logrotate-entry-equeue
  cron
  cron-entry-logrotate
  sshkeys-authority
  dropbear-server
  sshkeys-dropbear
  dropbear-server-pbs-authorized-key
  notifier

20
  cron-entry-backup
21

22
[resilient-publish-connection-parameter]
23 24 25
notification-id = http://[$${notifier:host}]:$${notifier:port}/get/$${notifier-exporter:name}

[notifier-exporter]
Marco Mariani's avatar
Marco Mariani committed
26 27
# notifier.notify launches an (exporter) executable, and when finished,
# notifies the the pull-backup-servers.
28 29 30 31 32 33 34 35 36
<= notifier
recipe = slapos.cookbook:notifier.notify
name = exporter
title = Dumping $${slap-parameter:namebase}
executable = $${exporter:wrapper}
wrapper = $${rootdirectory:bin}/exporter
notify = $${slap-parameter:notify}

[cron-entry-backup]
Marco Mariani's avatar
Marco Mariani committed
37 38
# Schedule the periodic database dump.
# Through notifications, this triggers (one or more) incremental backups on PBS instances.
39 40 41
<= cron
recipe = slapos.cookbook:cron.d
name = backup
42
frequency = $${slap-parameter:resiliency-backup-periodicity} * * * *
43
command = $${notifier-exporter:wrapper}
44 45 46 47 48

[slap-parameter]
# in minutes, modulo 60, in cron.d format (i.e */15 is accepted).
resiliency-backup-periodicity = 0