buildout.cfg 3.9 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
  ../monitor/buildout.cfg
10 11

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

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

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

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

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

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

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

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

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

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

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

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

99 100 101 102 103 104 105 106
# Provide an empty wrapper
[template-wrapper]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/templates/wrapper.in
output = ${buildout:directory}/template-wrapper.cfg
mode = 0644
md5sum = 8cde04bfd0c0e9bd56744b988275cfd8

107 108 109 110 111 112 113 114
##################
# Monitor element
#

[template-monitor-check-resilient-feed]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/templates/monitor-check-resilient-feed.in
download-only = true
115
md5sum = 19ee9055de961acf402e2dfe5b9581d2
116 117 118
filename = monitor-check-resilient-feed.in
mode = 0644

119 120 121 122
[rdiff-backup-build]
# use our own version
find-links = http://www.nexedi.org/static/packages/source/rdiff-backup-1.3.4nxd2.tar.gz

123 124 125
[versions]
# Pin Jinja2 to 2.6, as 2.7 breaks current code
Jinja2 = 2.6
126 127
# ... And newer s.r.template requires Jinja2 >= 2.7
slapos.recipe.template = 2.4.2
128
rdiff-backup = 1.3.4nxd2
129
slapos.cookbook = 0.92
Marco Mariani's avatar
Marco Mariani committed
130

131