instance-common.cfg.in 1.52 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
[buildout]
parts = switch-softwaretype
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}

[slap-configuration]
recipe = slapos.cookbook:slapconfiguration.serialised
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}

[jinja2-template-base]
recipe = slapos.recipe.template:jinja2
filename = ${:_buildout_section_name_}.cfg
rendered = ${buildout:parts-directory}/${:_buildout_section_name_}/${:filename}
18 19 20
extensions =
    jinja2.ext.do
    jinja2.ext.loopcontrols
21 22 23 24 25 26
extra-context =
context =
    key ipv4_set slap-configuration:ipv4
    key ipv6_set slap-configuration:ipv6
    key slapparameter_dict slap-configuration:configuration
    raw logrotate_cfg {{ template_logrotate_base }}
27
    raw template_monitor {{ template_monitor }}
28 29 30 31 32 33 34 35 36 37 38
    raw bin_directory {{ bin_directory }}
    ${:extra-context}

[neo-admin]
<= jinja2-template-base
template = {{ neo_admin }}

[neo-master]
<= jinja2-template-base
template = {{ neo_master }}

39
[neo]
40
<= jinja2-template-base
41
template = {{ neo }}
42 43 44
extra-context =
    key master_cfg neo-master:rendered
    key admin_cfg neo-admin:rendered
45
{%- if mariadb_location is defined %}
46
    raw mariadb_location {{ mariadb_location }}
47
    raw template_mysqld_wrapper {{ template_mysqld_wrapper }}
48
    raw template_neo_my_cnf {{ template_neo_my_cnf }}
49
{%- endif %}
50 51 52
{%- if pypy_location is defined %}
    raw pypy_location {{ pypy_location }}
{%- endif %}