slaprunner: add configurable cpu-ratio parameter
[slapos.git] / software / powerdns / 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 offline = true
8
9
10 [switch-softwaretype]
11 recipe = slapos.cookbook:softwaretype
12 default = $${dynamic-powerdns-replicate:rendered}
13 single-default = $${dynamic-template-powerdns:rendered}
14
15
16 [jinja2-template-base]
17 recipe = slapos.recipe.template:jinja2
18 rendered = $${buildout:directory}/$${:filename}
19 extra-context =
20 context =
21     import json_module json
22     key eggs_directory buildout:eggs-directory
23     key develop_eggs_directory buildout:develop-eggs-directory
24     key slap_software_type slap-parameters:slap-software-type
25     key slapparameter_dict slap-parameters:configuration
26     key slave_instance_list slap-parameters:slave-instance-list
27     $${:extra-context}
28
29 [dynamic-template-powerdns]
30 < = jinja2-template-base
31 template = ${template-powerdns:output}
32 filename = instance-powerdns.cfg
33 extensions = jinja2.ext.do
34 extra-context =
35 # Must match the key id in [switch-softwaretype] which uses this section.
36     raw software_type single-default
37
38 [dynamic-powerdns-replicate]
39 < = jinja2-template-base
40 template = ${template-dns-replicate:target}
41 filename = instance-apache-replicate.cfg
42 extensions = jinja2.ext.do
43 extra-context =
44 # Must match the key id in [switch-softwaretype] which uses this section.
45     raw software_type RootSoftwareInstance-default
46
47
48 [slap-parameters]
49 recipe = slapos.cookbook:slapconfiguration
50 computer = $${slap-connection:computer-id}
51 partition = $${slap-connection:partition-id}
52 url = $${slap-connection:server-url}
53 key = $${slap-connection:key-file}
54 cert = $${slap-connection:cert-file}
55 slave-instance-list =