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

parts =
13
  pbs-recipe-egg
14 15 16
  pbsready
  pbsready-import
  pbsready-export
17 18
  template-replicated
  template-parts
19
  instance-frozen
20

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

26
[pbs-recipe-egg]
27
recipe = zc.recipe.egg
28 29
eggs =
  collective.recipe.template
30
  collective.recipe.environment
31

Marco Mariani's avatar
Marco Mariani committed
32 33 34 35 36
#----------------
#--
#-- Profiles needed to setup automated backup and recovery.
#--

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

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

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

[template-pull-backup]
recipe = slapos.recipe.template
67 68
url = ${:_profile_base_location_}/instance-pull-backup.cfg.in
output = ${buildout:directory}/instance-pull-backup.cfg
69
md5sum = 71c24e37426910af05ac484f5e206388
70 71 72
mode = 0644

[template-replicated]
73
recipe = slapos.recipe.build:download
74
url = ${:_profile_base_location_}/template-replicated.cfg.in
75
md5sum = 7a6234465ae845cb262d4f94c158764e
76
mode = 0644
77
destination = ${buildout:directory}/template-replicated.cfg.in
78 79

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

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

95
[resilient-web-takeover-cgi-script-download]
96
recipe = slapos.recipe.build:download
97
url = ${:_profile_base_location_}/resilient-web-takeover-cgi-script.py.in
98
md5sum = c46c8e3e4ce4376c98ad2fc0e2ff0fe4
99 100 101
mode = 0644
destination = ${buildout:directory}/resilient-web-takeover-cgi-script.py.in

102 103 104 105 106 107 108 109
# 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

110 111 112 113 114 115
##################
# Monitor element
#

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

123 124 125 126
[rdiff-backup-build]
# use our own version
find-links = http://www.nexedi.org/static/packages/source/rdiff-backup-1.3.4nxd2.tar.gz

127
[versions]
128
rdiff-backup = 1.3.4nxd2
Marco Mariani's avatar
Marco Mariani committed
129

130