buildout.cfg 2.68 KB
Newer Older
1
[buildout]
2
extends =
3
  ../../component/dropbear/buildout.cfg
4
  ../../component/gzip/buildout.cfg
5
  ../../component/rdiff-backup/buildout.cfg
6
  ../../component/rsync/buildout.cfg
7 8

parts =
9
  rdiff-backup
10 11 12
  pbsready
  pbsready-import
  pbsready-export
13 14
  template-replicated
  template-parts
15
  instance-frozen
16

17 18 19
  # needed tools for resiliency
  gzip

20

Marco Mariani's avatar
Marco Mariani committed
21 22 23 24 25
#----------------
#--
#-- Profiles needed to setup automated backup and recovery.
#--

26
[pbsready]
Marco Mariani's avatar
Marco Mariani committed
27 28 29
# Common parts for pbsready-import and pbsready-export.
# Provides rdiff-backup, notification queue, ssh authentication,
# dropbear server, and the bully script.
30
recipe = slapos.recipe.template
31 32
url = ${:_profile_base_location_}/pbsready.cfg.in
output = ${buildout:directory}/pbsready.cfg
33
md5sum = 9f4212a79f10bee8f6d75061943110e2
34 35
mode = 0644

36
[pbsready-import]
Marco Mariani's avatar
Marco Mariani committed
37 38
# An import instance has an importer script, which is called
# by the parent PBS instance when the dump content is propagated.
39
recipe = slapos.recipe.template
40 41
url = ${:_profile_base_location_}/pbsready-import.cfg.in
output = ${buildout:directory}/pbsready-import.cfg
42
md5sum = 3c2e73f49abdc52282fc045e6d91f3e9
43 44
mode = 0644

45
[pbsready-export]
Marco Mariani's avatar
Marco Mariani committed
46 47
# An export instance has an exporter script, and communicates
# to parent PBS instances to deliver the exported dump.
48
recipe = slapos.recipe.template
49 50
url = ${:_profile_base_location_}/pbsready-export.cfg.in
output = ${buildout:directory}/pbsready-export.cfg
51
md5sum = ef3861861746d3574f39f1aa3200d74e
52 53 54 55
mode = 0644

[template-pull-backup]
recipe = slapos.recipe.template
56 57
url = ${:_profile_base_location_}/instance-pull-backup.cfg.in
output = ${buildout:directory}/instance-pull-backup.cfg
58
md5sum = c67a9dad66490ae264f9e7003521bf59
59 60 61 62
mode = 0644

[template-replicated]
recipe = slapos.recipe.download
63
url = ${:_profile_base_location_}/template-replicated.cfg.in
64
#md5sum = 9e20f283bf709c63c9c6692d5e1f8972
65
mode = 0644
66
destination = ${buildout:directory}/template-replicated.cfg.in
67 68 69

[template-parts]
recipe = slapos.recipe.download
70
url = ${:_profile_base_location_}/template-parts.cfg.in
71
md5sum = c942f82552fcb42fc74a5f896e0cd5f3
72
mode = 0644
73
destination = ${buildout:directory}/template-parts.cfg.in
74

75
[instance-frozen]
Marco Mariani's avatar
Marco Mariani committed
76 77 78
# When an instance is detected as broken, its software type is changed to "frozen".
# On the next run of slapgrid-cp, the buildout profile is replaced by instance-frozen.cfg,
# which will run without removing any content because it raises an error.
79
recipe = slapos.recipe.template
80
url = ${:_profile_base_location_}/instance-frozen.cfg.in
81
md5sum = d21472f0e58f928fb827f2cbf22c4d4a
82
output = ${buildout:directory}/instance-frozen.cfg
83

84 85 86
[versions]
# Pin Jinja2 to 2.6, as 2.7 breaks current code
Jinja2 = 2.6
87 88
# ... And newer s.r.template requires Jinja2 >= 2.7
slapos.recipe.template = 2.4.2
89