Merge branch 'erp5-component' into erp5
[slapos.git] / software / apache-frontend / instance.cfg
1 [buildout]
2 parts =
3   dynamic-template-apache-replicate
4   switch-softwaretype
5
6 eggs-directory = ${buildout:eggs-directory}
7 develop-eggs-directory = ${buildout:develop-eggs-directory}
8 offline = true
9
10 [slap-parameters]
11 recipe = slapos.cookbook:slapconfiguration
12 computer = $${slap-connection:computer-id}
13 partition = $${slap-connection:partition-id}
14 url = $${slap-connection:server-url}
15 key = $${slap-connection:key-file}
16 cert = $${slap-connection:cert-file}
17
18 [jinja2-template-base]
19 recipe = slapos.recipe.template:jinja2
20 rendered = $${buildout:directory}/$${:filename}
21 extra-context =
22 context =
23     import json_module json
24     key eggs_directory buildout:eggs-directory
25     key develop_eggs_directory buildout:develop-eggs-directory
26     key slap_software_type slap-parameters:slap-software-type
27     key slapparameter_dict slap-parameters:configuration
28     key slave_instance_list slap-parameters:slave-instance-list
29     $${:extra-context}
30
31 [switch-softwaretype]
32 recipe = slapos.cookbook:softwaretype
33 default = $${dynamic-template-apache-replicate:rendered}
34 custom-personal = $${dynamic-template-apache-replicate:rendered}
35 custom-group = $${dynamic-template-apache-replicate:rendered}
36 single-default = ${template-apache-frontend:output}
37 single-custom-personal = ${template-apache-frontend:output}
38 single-custom-group = ${template-apache-frontend:output}
39 replicate = $${dynamic-template-apache-replicate:rendered}
40
41 [dynamic-template-apache-replicate]
42 < = jinja2-template-base
43 template = ${template-apache-replicate:target}
44 filename = instance-apache-replicate.cfg
45 extensions = jinja2.ext.do
46 extra-context =
47     raw template_publish_slave_information ${template-replicate-publish-slave-information:target}
48 # Must match the key id in [switch-softwaretype] which uses this section.
49     raw software_type RootSoftwareInstance-default-custom-personal-custom-group-replicate