buildout.cfg 2.49 KB
Newer Older
1 2 3
[buildout]

parts =
4 5 6
  pbsready
  pbsready-import
  pbsready-export
7 8
  template-replicated
  template-parts
9
  instance-frozen
10 11 12
  template-resilient


Marco Mariani's avatar
Marco Mariani committed
13 14 15 16 17
#----------------
#--
#-- Profiles needed to setup automated backup and recovery.
#--

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

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

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

[template-pull-backup]
recipe = slapos.recipe.template
48 49
url = ${:_profile_base_location_}/instance-pull-backup.cfg.in
output = ${buildout:directory}/instance-pull-backup.cfg
50
md5sum = 453d96f5a6c1230c01c878cc7640bae6
51 52 53 54
mode = 0644

[template-replicated]
recipe = slapos.recipe.download
55
url = ${:_profile_base_location_}/template-replicated.cfg.in
56
md5sum = 9e20f283bf709c63c9c6692d5e1f8972
57
mode = 0644
58
destination = ${buildout:directory}/template-replicated.cfg.in
59 60 61

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

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

[template-resilient]
recipe = slapos.recipe.template
77
url = ${:_profile_base_location_}/resilient.cfg.in
78 79 80 81
output = ${buildout:directory}/resilient.cfg
md5sum = 59e74d290d623de2c1e147e48f284fba
mode = 0644