slaprunner: add configurable cpu-ratio parameter
[slapos.git] / software / neoppod / instance.cfg.in
1 {% set admin_software_type = 'neo-admin' -%}
2 {% set mysql_storage_software_type = 'neo-storage-mysql' -%}
3 [buildout]
4 parts = switch-softwaretype
5 eggs-directory = {{ eggs_directory }}
6 develop-eggs-directory = {{ develop_eggs_directory }}
7 offline = true
8
9 [slap-connection]
10 computer-id = ${slap_connection:computer_id}
11 partition-id = ${slap_connection:partition_id}
12 server-url = ${slap_connection:server_url}
13 software-release-url = ${slap_connection:software_release_url}
14 key-file = ${slap_connection:key_file}
15 cert-file = ${slap_connection:cert_file}
16
17 [slap-configuration]
18 recipe = slapos.cookbook:slapconfiguration.serialised
19 computer = ${slap-connection:computer-id}
20 partition = ${slap-connection:partition-id}
21 url = ${slap-connection:server-url}
22 key = ${slap-connection:key-file}
23 cert = ${slap-connection:cert-file}
24
25 [neo-cluster]
26 recipe = slapos.recipe.template:jinja2
27 template = {{ cluster }}
28 rendered = ${buildout:parts-directory}/${:_buildout_section_name_}/cluster.cfg
29 extensions = jinja2.ext.do
30 context =
31     key eggs_directory buildout:eggs-directory
32     key develop_eggs_directory buildout:develop-eggs-directory
33     key slap_software_type slap-configuration:slap-software-type
34     key slapparameter_dict slap-configuration:configuration
35     raw admin_software_type {{ admin_software_type }}
36     raw mysql_storage_software_type {{ mysql_storage_software_type }}
37
38 [switch-softwaretype]
39 recipe = slapos.cookbook:softwaretype
40 default = ${neo-cluster:rendered}
41 {{ admin_software_type }} = {{ neo_admin }}
42 {{ mysql_storage_software_type }} = {{ neo_storage_mysql }}