Start to test all json schema and files.
[slapos.git] / software / slaprunner / instance.cfg
1 [buildout]
2 parts =
3   switch_softwaretype
4
5 eggs-directory = ${buildout:eggs-directory}
6 develop-eggs-directory = ${buildout:develop-eggs-directory}
7
8 [switch_softwaretype]
9 recipe = slapos.cookbook:softwaretype
10 default = $${instance-base-runner:rendered}
11 resilient = $${instance-resilient:rendered}
12 test = $${instance-resilient-test:rendered}
13 runner = $${instance-base-runner:rendered}
14 runner-import = ${instance-runner-import:output}
15 runner-export = ${instance-runner-export:output}
16
17 frozen = ${instance-frozen:output}
18 pull-backup = ${template-pull-backup:output}
19
20 [instance-base-runner]
21 recipe = slapos.recipe.template:jinja2
22 template = ${template-runner:output}
23 rendered = $${buildout:directory}/template-runner.cfg
24 extensions = jinja2.ext.do
25 context = key buildout buildout:bin-directory
26           key develop_eggs_directory buildout:develop-eggs-directory
27           key eggs_directory buildout:eggs-directory
28           key slapparameter_dict slap-configuration:configuration
29           raw curl_executable_location ${curl:location}/bin/curl
30           raw dash_executable_location ${dash:location}/bin/dash
31           raw dcron_executable_location ${dcron:location}/sbin/crond
32 mode = 0644
33
34 [instance-resilient]
35 recipe = slapos.recipe.template:jinja2
36 template = ${template-resilient:target}
37 rendered = $${buildout:directory}/instance-resilient.cfg
38 extensions = jinja2.ext.do
39 context = key buildout buildout:bin-directory
40           key develop_eggs_directory buildout:develop-eggs-directory
41           key eggs_directory buildout:eggs-directory
42           key slapparameter_dict slap-configuration:configuration
43 template-parts-destination = ${template-parts:destination}
44 template-replicated-destination = ${template-replicated:destination}
45 import-list = file parts :template-parts-destination
46               file replicated :template-replicated-destination
47 mode = 0644
48
49 [instance-resilient-test]
50 recipe = slapos.recipe.template:jinja2
51 template = ${template-resilient-test:location}/instance-resilient-test.cfg.jinja2
52 rendered = $${buildout:directory}/template-resilient-test.cfg
53 bin-directory = ${buildout:bin-directory}
54 context =
55     key bin_directory instance-resilient-test:bin-directory
56     key develop_eggs_directory buildout:develop-eggs-directory
57     key eggs_directory buildout:eggs-directory
58     key slapparameter_dict slap-configuration:configuration
59 mode = 0644
60
61 [slap-configuration]
62 recipe = slapos.cookbook:slapconfiguration.serialised
63 computer = $${slap-connection:computer-id}
64 partition = $${slap-connection:partition-id}
65 url = $${slap-connection:server-url}
66 key = $${slap-connection:key-file}
67 cert = $${slap-connection:cert-file}