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

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

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

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

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

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

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

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

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

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

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

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

91 92 93
[resilient-web-takeover-cgi-script-download]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/resilient-web-takeover-cgi-script.py.in
94
md5sum = e6262c5cf9b1c4d1ea4d959fdcbe3070
95 96 97
mode = 0644
destination = ${buildout:directory}/resilient-web-takeover-cgi-script.py.in

98 99 100
[versions]
# Pin Jinja2 to 2.6, as 2.7 breaks current code
Jinja2 = 2.6
101 102
# ... And newer s.r.template requires Jinja2 >= 2.7
slapos.recipe.template = 2.4.2