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

3
extends = ${pbsready:output}
4

5 6 7 8 9 10 11 12 13 14 15 16
# 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
17
  resilient-sshkeys-dropbear-promise
18 19 20
  dropbear-server-pbs-authorized-key
  notifier

21
  cron-entry-backup
22

23 24 25 26 27 28
[resilient-directory]
recipe = slapos.cookbook:mkdirectory
home = $${buildout:directory}
var = $${:home}/var
pid = $${:var}/pid

29 30 31 32 33 34
# Define port of ssh server. It has to be different from import so that it
# supports export/import using same IP (slaprunner, slapos-in-partition,
# ipv4...)
[dropbear-server]
port = 22221

35
[resilient-publish-connection-parameter]
36 37 38
notification-id = http://[$${notifier:host}]:$${notifier:port}/get/$${notifier-exporter:name}

[notifier-exporter]
Marco Mariani's avatar
Marco Mariani committed
39 40
# notifier.notify launches an (exporter) executable, and when finished,
# notifies the the pull-backup-servers.
41 42 43 44 45 46 47
<= notifier
recipe = slapos.cookbook:notifier.notify
name = exporter
title = Dumping $${slap-parameter:namebase}
executable = $${exporter:wrapper}
wrapper = $${rootdirectory:bin}/exporter
notify = $${slap-parameter:notify}
48
pidfile = $${resilient-directory:pid}/$${:name}.pid
49 50

[cron-entry-backup]
Marco Mariani's avatar
Marco Mariani committed
51 52
# Schedule the periodic database dump.
# Through notifications, this triggers (one or more) incremental backups on PBS instances.
53 54 55
<= cron
recipe = slapos.cookbook:cron.d
name = backup
56
frequency = $${slap-parameter:resiliency-backup-periodicity}
57
command = $${notifier-exporter:wrapper}
58 59

[slap-parameter]
60 61
# In cron.d format (i.e things like */15 * * * * are accepted).
resiliency-backup-periodicity = 0 0 * * *
62