instance.cfg.in 2.61 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 22 23
[jinja2-template-base]
recipe = slapos.recipe.template:jinja2
rendered = ${buildout:parts-directory}/${:_buildout_section_name_}/${:filename}
extra-context =
context =
    key eggs_directory buildout:eggs-directory
    key develop_eggs_directory buildout:develop-eggs-directory
24
    key slapparameter_dict slap-parameters:configuration
25 26 27
    ${:extra-context}

[dynamic-template-cloudooo-parameters]
28
buildout-bin-directory = {{ buildout_bin_directory }}
29
cairo = {{ cairo_location }}
30
coreutils = {{ coreutils_location }}
31
cups = {{ cups_location }}
32
dash = {{ dash_location }}
33 34
dbus = {{ dbus_location }}
dbus-glib = {{ dbus_glib_location }}
35 36
file = {{ file_location }}
fontconfig = {{ fontconfig_location }}
37
fonts = {{ fonts_location }}
38
freetype = {{ freetype_location }}
39
glib = {{ glib_location }}
40
glu = {{ glu_location }}
41
haproxy = {{ haproxy_location }}
42
imagemagick = {{ imagemagick_location }}
43 44 45 46 47 48 49
libICE = {{ libICE_location }}
libSM = {{ libSM_location }}
libX11 = {{ libX11_location }}
libXau = {{ libXau_location }}
libXdmcp = {{ libXdmcp_location }}
libXext = {{ libXext_location }}
libXrender = {{ libXrender_location }}
50 51 52
libexpat = {{ libexpat_location }}
libffi = {{ libffi_location }}
libpng12 = {{ libpng12_location }}
53
libreoffice-bin = {{ libreoffice_bin_location }}
54 55
libxcb = {{ libxcb_location }}
mesa = {{ mesa_location }}
56
poppler = {{ poppler_location }}
57
pixman = {{ pixman_location }}
58
wkhtmltopdf = {{ wkhtmltopdf_location }}
59 60
xdamage = {{ xdamage_location }}
xfixes = {{ xfixes_location }}
61
xserver = {{ xserver_location }}
62
zlib = {{ zlib_location }}
63 64 65 66 67

[dynamic-template-cloudooo]
< = jinja2-template-base
template = {{ template_cloudooo }}
filename = instance-cloudoo.cfg
68
extensions = jinja2.ext.do
69 70
extra-context =
    section parameter_dict dynamic-template-cloudooo-parameters
71
    key ipv4_set slap-parameters:ipv4
72 73 74 75 76 77 78 79 80 81 82 83 84

[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
default = ${dynamic-template-cloudooo:rendered}

[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}