request: drop redundant 'config' & 'sla' options
[slapos.git] / stack / resilient / buildout.cfg
1 [buildout]
2 extends =
3   ../../component/apache/buildout.cfg
4   ../../component/bash/buildout.cfg
5   ../../component/dropbear/buildout.cfg
6   ../../component/gzip/buildout.cfg
7   ../../component/rdiff-backup/buildout.cfg
8   ../../component/rsync/buildout.cfg
9   ../monitor/buildout.cfg
10
11 parts =
12   collective.recipe.template-egg
13   pbsready
14   pbsready-import
15   pbsready-export
16   template-replicated
17   template-parts
18   instance-frozen
19
20   # needed tools for resiliency
21   gzip
22   rdiff-backup
23   dash
24
25 [collective.recipe.template-egg]
26 recipe = zc.recipe.egg
27 eggs = collective.recipe.template
28
29 #----------------
30 #--
31 #-- Profiles needed to setup automated backup and recovery.
32 #--
33
34 [pbsready]
35 # Common parts for pbsready-import and pbsready-export.
36 # Provides rdiff-backup, notification queue, ssh authentication,
37 # dropbear server, and the takeover script.
38 recipe = slapos.recipe.template
39 url = ${:_profile_base_location_}/pbsready.cfg.in
40 output = ${buildout:directory}/pbsready.cfg
41 md5sum = e89d8378cc610704b518a89b095d3a19
42 mode = 0644
43
44 [pbsready-import]
45 # An import instance has an importer script, which is called
46 # by the parent PBS instance when the dump content is propagated.
47 recipe = slapos.recipe.template
48 url = ${:_profile_base_location_}/pbsready-import.cfg.in
49 output = ${buildout:directory}/pbsready-import.cfg
50 md5sum = a5570ecfeff7a9d1b5f8be08db4feefe
51 mode = 0644
52
53 [pbsready-export]
54 # An export instance has an exporter script, and communicates
55 # to parent PBS instances to deliver the exported dump.
56 recipe = slapos.recipe.template
57 url = ${:_profile_base_location_}/pbsready-export.cfg.in
58 output = ${buildout:directory}/pbsready-export.cfg
59 md5sum = 879fff114d1dbf1f58774ccbce9bdd22
60 mode = 0644
61
62 [template-pull-backup]
63 recipe = slapos.recipe.template
64 url = ${:_profile_base_location_}/instance-pull-backup.cfg.in
65 output = ${buildout:directory}/instance-pull-backup.cfg
66 md5sum = 08b80d1b7beb1610077151904526a2ec
67 mode = 0644
68
69 [template-replicated]
70 recipe = slapos.recipe.download
71 url = ${:_profile_base_location_}/template-replicated.cfg.in
72 md5sum = a21d751078dbf1fc80ecb93a6f499287
73 mode = 0644
74 destination = ${buildout:directory}/template-replicated.cfg.in
75
76 [template-parts]
77 recipe = slapos.recipe.download
78 url = ${:_profile_base_location_}/template-parts.cfg.in
79 md5sum = 071b1034ee8f5cc14f79b16fdeba2813
80 mode = 0644
81 destination = ${buildout:directory}/template-parts.cfg.in
82
83 [instance-frozen]
84 # When an instance is detected as broken, its software type is changed to "frozen".
85 # On the next run of slapgrid-cp, the buildout profile is replaced by instance-frozen.cfg,
86 # which will run without removing any content because it raises an error.
87 recipe = slapos.recipe.template
88 url = ${:_profile_base_location_}/instance-frozen.cfg.in
89 md5sum = d21472f0e58f928fb827f2cbf22c4d4a
90 output = ${buildout:directory}/instance-frozen.cfg
91
92 [resilient-web-takeover-cgi-script-download]
93 recipe = slapos.recipe.download
94 url = ${:_profile_base_location_}/resilient-web-takeover-cgi-script.py.in
95 md5sum = e6262c5cf9b1c4d1ea4d959fdcbe3070
96 mode = 0644
97 destination = ${buildout:directory}/resilient-web-takeover-cgi-script.py.in
98
99 # Provide an empty wrapper
100 [template-wrapper]
101 recipe = slapos.recipe.template
102 url = ${:_profile_base_location_}/templates/wrapper.in
103 output = ${buildout:directory}/template-wrapper.cfg
104 mode = 0644
105 md5sum = 8cde04bfd0c0e9bd56744b988275cfd8
106
107 ##################
108 # Monitor element
109 #
110
111 [template-monitor-check-resilient-feed]
112 recipe = hexagonit.recipe.download
113 url = ${:_profile_base_location_}/templates/monitor-check-resilient-feed.in
114 download-only = true
115 md5sum = 19ee9055de961acf402e2dfe5b9581d2
116 filename = monitor-check-resilient-feed.in
117 mode = 0644
118
119 [rdiff-backup-build]
120 # use our own version
121 find-links = http://www.nexedi.org/static/packages/source/rdiff-backup-1.3.4nxd2.tar.gz
122
123 [versions]
124 # Pin Jinja2 to 2.6, as 2.7 breaks current code
125 Jinja2 = 2.6
126 # ... And newer s.r.template requires Jinja2 >= 2.7
127 slapos.recipe.template = 2.4.2
128 rdiff-backup = 1.3.4nxd2
129 slapos.cookbook = 0.91
130
131