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

eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true

9 10 11 12 13 14 15 16
[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}

17 18 19 20 21
[jinja2-template-base]
recipe = slapos.recipe.template:jinja2
rendered = ${buildout:parts-directory}/${:_buildout_section_name_}/${:filename}
extra-context =
context =
22
    key ipv6_set slap-parameters:ipv6
23 24
    key eggs_directory buildout:eggs-directory
    key develop_eggs_directory buildout:develop-eggs-directory
25
    key slapparameter_dict slap-parameters:configuration
26 27
    ${:extra-context}

28 29 30 31
[cloudooo-dynamic-template-parameter-dict]
{% for key, value in dynamic_template_cloudooo_instance_parameter_dict.items() -%}
{{   key }} = {{ dumps(value) }}
{% endfor -%}
32
instance-parameter-dict = {{ dumps(cloudooo_parameter_dict) }}
33

34
[cloudooo-dynamic-template]
35
< = jinja2-template-base
36 37
template = {{ template_cloudooo_instance }}
filename = instance-cloudooo.cfg
38
extensions = jinja2.ext.do
39
extra-context =
40
    section parameter_dict cloudooo-dynamic-template-parameter-dict
41
    key ipv4_set slap-parameters:ipv4
42
    import itertools itertools
43 44 45

[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
46
default = ${cloudooo-dynamic-template:rendered}
47 48 49 50 51 52 53 54 55

[slap-connection]
# part to migrate to new - separated words
computer-id = ${slap_connection:computer_id}
partition-id = ${slap_connection:partition_id}
server-url = ${slap_connection:server_url}
software-release-url = ${slap_connection:software_release_url}
key-file = ${slap_connection:key_file}
cert-file = ${slap_connection:cert_file}