Merge branch 'kvm'
[slapos.git] / stack / resilient / buildout.cfg
1 [buildout]
2 extends =
3   ../../component/dropbear/buildout.cfg
4   ../../component/gzip/buildout.cfg
5   ../../component/rdiff-backup/buildout.cfg
6   ../../component/rsync/buildout.cfg
7
8 parts =
9   rdiff-backup
10   pbsready
11   pbsready-import
12   pbsready-export
13   template-replicated
14   template-parts
15   instance-frozen
16
17   # needed tools for resiliency
18   gzip
19
20
21 #----------------
22 #--
23 #-- Profiles needed to setup automated backup and recovery.
24 #--
25
26 [pbsready]
27 # Common parts for pbsready-import and pbsready-export.
28 # Provides rdiff-backup, notification queue, ssh authentication,
29 # dropbear server, and the bully script.
30 recipe = slapos.recipe.template
31 url = ${:_profile_base_location_}/pbsready.cfg.in
32 output = ${buildout:directory}/pbsready.cfg
33 md5sum = 9f4212a79f10bee8f6d75061943110e2
34 mode = 0644
35
36 [pbsready-import]
37 # An import instance has an importer script, which is called
38 # by the parent PBS instance when the dump content is propagated.
39 recipe = slapos.recipe.template
40 url = ${:_profile_base_location_}/pbsready-import.cfg.in
41 output = ${buildout:directory}/pbsready-import.cfg
42 md5sum = 3c2e73f49abdc52282fc045e6d91f3e9
43 mode = 0644
44
45 [pbsready-export]
46 # An export instance has an exporter script, and communicates
47 # to parent PBS instances to deliver the exported dump.
48 recipe = slapos.recipe.template
49 url = ${:_profile_base_location_}/pbsready-export.cfg.in
50 output = ${buildout:directory}/pbsready-export.cfg
51 md5sum = ef3861861746d3574f39f1aa3200d74e
52 mode = 0644
53
54 [template-pull-backup]
55 recipe = slapos.recipe.template
56 url = ${:_profile_base_location_}/instance-pull-backup.cfg.in
57 output = ${buildout:directory}/instance-pull-backup.cfg
58 md5sum = c67a9dad66490ae264f9e7003521bf59
59 mode = 0644
60
61 [template-replicated]
62 recipe = slapos.recipe.download
63 url = ${:_profile_base_location_}/template-replicated.cfg.in
64 #md5sum = 9e20f283bf709c63c9c6692d5e1f8972
65 mode = 0644
66 destination = ${buildout:directory}/template-replicated.cfg.in
67
68 [template-parts]
69 recipe = slapos.recipe.download
70 url = ${:_profile_base_location_}/template-parts.cfg.in
71 md5sum = c942f82552fcb42fc74a5f896e0cd5f3
72 mode = 0644
73 destination = ${buildout:directory}/template-parts.cfg.in
74
75 [instance-frozen]
76 # When an instance is detected as broken, its software type is changed to "frozen".
77 # On the next run of slapgrid-cp, the buildout profile is replaced by instance-frozen.cfg,
78 # which will run without removing any content because it raises an error.
79 recipe = slapos.recipe.template
80 url = ${:_profile_base_location_}/instance-frozen.cfg.in
81 md5sum = d21472f0e58f928fb827f2cbf22c4d4a
82 output = ${buildout:directory}/instance-frozen.cfg
83
84 [versions]
85 # Pin Jinja2 to 2.6, as 2.7 breaks current code
86 Jinja2 = 2.6
87