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