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

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


Marco Mariani's avatar
Marco Mariani committed
18 19 20 21 22
#----------------
#--
#-- Profiles needed to setup automated backup and recovery.
#--

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

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

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

[template-pull-backup]
recipe = slapos.recipe.template
53 54
url = ${:_profile_base_location_}/instance-pull-backup.cfg.in
output = ${buildout:directory}/instance-pull-backup.cfg
55
md5sum = 453d96f5a6c1230c01c878cc7640bae6
56 57 58 59
mode = 0644

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

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

72
[instance-frozen]
Marco Mariani's avatar
Marco Mariani committed
73 74 75
# 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.
76
recipe = slapos.recipe.template
77 78
url = ${:_profile_base_location_}/instance-frozen.cfg.in
output = ${buildout:directory}/instance-frozen.cfg
79 80 81

[template-resilient]
recipe = slapos.recipe.template
82
url = ${:_profile_base_location_}/resilient.cfg.in
83 84 85 86
output = ${buildout:directory}/resilient.cfg
md5sum = 59e74d290d623de2c1e147e48f284fba
mode = 0644