instance.cfg.in 1.66 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
[buildout]
parts =
  switch-softwaretype

eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline = true

[profile-common]
nginx_location = {{ nginx_location }}
dash_location = {{ dash_location }}
12 13
tar_location = {{ tar_location }}
curl_location = {{ curl_location }}
14 15 16
template_nginx_conf = {{ template_nginx_conf_target }}
template_mime_types = {{ template_mime_types_target }} 
template_launcher = {{ template_launcher_target }} 
17
template_index_html = {{ template_index_html_target }}
18
template_graceful  = {{ template_graceful_target }}
19
template_monitor = {{ template_monitor }}
20 21 22 23 24 25

[instance-html5as]
recipe = slapos.recipe.template:jinja2
template = {{ template_instance_html5as_target }}
rendered = ${buildout:directory}/${:filename}
filename = instance-html5as.cfg
26 27 28 29 30 31 32 33 34 35
context =
  section buildout buildout
  section parameter_list profile-common

[instance-replicate]
recipe = slapos.recipe.template:jinja2
template = {{ template_instance_replicate }}
rendered = ${buildout:directory}/${:filename}
filename = instance-replicate-html5as.cfg
context =
36 37
  section buildout buildout
  section parameter_list profile-common
38
  key slapparameter_dict slap-parameters:configuration
39 40 41 42

[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
default = ${instance-html5as:rendered}
43
replicate = ${instance-replicate:rendered}
44 45 46 47 48 49 50 51 52

# Section  needed to be added manually here to retrieve parameters
[slap-parameters]
recipe = slapos.cookbook:slapconfiguration
computer = ${slap-connection:computer-id}
partition = ${slap-connection:partition-id}
url = ${slap-connection:server-url}
key = ${slap-connection:key-file}
cert = ${slap-connection:cert-file}