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

parts =
10
  collective.recipe.template-egg
11 12 13
  pbsready
  pbsready-import
  pbsready-export
14 15
  template-replicated
  template-parts
16
  instance-frozen
17

18 19
  # needed tools for resiliency
  gzip
20 21
  rdiff-backup
  dash
22

23 24 25
[collective.recipe.template-egg]
recipe = zc.recipe.egg
eggs = collective.recipe.template
26

Marco Mariani's avatar
Marco Mariani committed
27 28 29 30 31
#----------------
#--
#-- Profiles needed to setup automated backup and recovery.
#--

32
[pbsready]
Marco Mariani's avatar
Marco Mariani committed
33 34 35
# Common parts for pbsready-import and pbsready-export.
# Provides rdiff-backup, notification queue, ssh authentication,
# dropbear server, and the bully script.
36
recipe = slapos.recipe.template
37 38
url = ${:_profile_base_location_}/pbsready.cfg.in
output = ${buildout:directory}/pbsready.cfg
39
#md5sum = 46f9d33e642467a72c599c8dc767e6c3
40 41
mode = 0644

42
[pbsready-import]
Marco Mariani's avatar
Marco Mariani committed
43 44
# An import instance has an importer script, which is called
# by the parent PBS instance when the dump content is propagated.
45
recipe = slapos.recipe.template
46 47
url = ${:_profile_base_location_}/pbsready-import.cfg.in
output = ${buildout:directory}/pbsready-import.cfg
48
md5sum = cb562bd954b9e809c8748d0f96de4116
49 50
mode = 0644

51
[pbsready-export]
Marco Mariani's avatar
Marco Mariani committed
52 53
# An export instance has an exporter script, and communicates
# to parent PBS instances to deliver the exported dump.
54
recipe = slapos.recipe.template
55 56
url = ${:_profile_base_location_}/pbsready-export.cfg.in
output = ${buildout:directory}/pbsready-export.cfg
57
md5sum = 8fb619622a08aff2321497895e04df16
58 59 60 61
mode = 0644

[template-pull-backup]
recipe = slapos.recipe.template
62 63
url = ${:_profile_base_location_}/instance-pull-backup.cfg.in
output = ${buildout:directory}/instance-pull-backup.cfg
64
md5sum = c49e5911b94078d87b94507fb4efc93b
65 66 67 68
mode = 0644

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

[template-parts]
recipe = slapos.recipe.download
76
url = ${:_profile_base_location_}/template-parts.cfg.in
77
md5sum = a3f55a20881c3f1ec4416662146c06f7
78
mode = 0644
79
destination = ${buildout:directory}/template-parts.cfg.in
80

81
[instance-frozen]
Marco Mariani's avatar
Marco Mariani committed
82 83 84
# 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.
85
recipe = slapos.recipe.template
86
url = ${:_profile_base_location_}/instance-frozen.cfg.in
87
md5sum = d21472f0e58f928fb827f2cbf22c4d4a
88
output = ${buildout:directory}/instance-frozen.cfg
89

90 91 92
[versions]
# Pin Jinja2 to 2.6, as 2.7 breaks current code
Jinja2 = 2.6
93 94
# ... And newer s.r.template requires Jinja2 >= 2.7
slapos.recipe.template = 2.4.2
95