Unify cloudooo with erp5 and install it direct from git
[slapos.git] / software / cloudooo / instance.cfg.in
1 [buildout]
2 parts =
3   switch-softwaretype
4
5 eggs-directory = {{ eggs_directory }}
6 develop-eggs-directory = {{ develop_eggs_directory }}
7 offline = true
8
9 [slap-parameters]
10 recipe = slapos.cookbook:slapparameters
11 computer = ${slap-connection:computer-id}
12 partition = ${slap-connection:partition-id}
13 url = ${slap-connection:server-url}
14 key = ${slap-connection:key-file}
15 cert = ${slap-connection:cert-file}
16
17 [jinja2-template-base]
18 recipe = slapos.recipe.template:jinja2
19 rendered = ${buildout:parts-directory}/${:_buildout_section_name_}/${:filename}
20 extra-context =
21 context =
22     key eggs_directory buildout:eggs-directory
23     key develop_eggs_directory buildout:develop-eggs-directory
24     jsonkey slapparameter_dict slap-parameters:json
25     ${:extra-context}
26
27 [dynamic-template-cloudooo-parameters]
28 file = {{ file_location }}
29 fontconfig = {{ fontconfig_location }}
30 freetype = {{ freetype_location }}
31 libICE = {{ libICE_location }}
32 libpng12 = {{ libpng12_location }}
33 libSM = {{ libSM_location }}
34 libX11 = {{ libX11_location }}
35 libXau = {{ libXau_location }}
36 libXdmcp = {{ libXdmcp_location }}
37 libXext = {{ libXext_location }}
38 libxcb = {{ libxcb_location }}
39 libXrender = {{ libXrender_location }}
40 zlib = {{ zlib_location }}
41 libreoffice-bin = {{ libreoffice_bin_location }}
42 fonts = {{ fonts_location }}
43 coreutils = {{ coreutils_location }}
44 imagemagick = {{ imagemagick_location }}
45 poppler = {{ poppler_location }}
46 buildout-bin-directory = {{ buildout_bin_directory }}
47
48 [dynamic-template-cloudooo]
49 < = jinja2-template-base
50 template = {{ template_cloudooo }}
51 filename = instance-cloudoo.cfg
52 extra-context =
53     section parameter_dict dynamic-template-cloudooo-parameters
54     import json_module json
55 # Must match the key id in [switch-softwaretype] which uses this section.
56     raw software_type default
57
58 [switch-softwaretype]
59 recipe = slapos.cookbook:softwaretype
60 default = ${dynamic-template-cloudooo:rendered}
61
62 [slap-connection]
63 # part to migrate to new - separated words
64 computer-id = ${slap_connection:computer_id}
65 partition-id = ${slap_connection:partition_id}
66 server-url = ${slap_connection:server_url}
67 software-release-url = ${slap_connection:software_release_url}
68 key-file = ${slap_connection:key_file}
69 cert-file = ${slap_connection:cert_file}