Unify cloudooo with erp5 and install it direct from git
[slapos.git] / software / cloudooo / instance-cloudoo.cfg.in
1 {% set json = json_module.loads(parameter_dict.get('cloudooo-json', '{}')) -%}
2 {% set bin_directory = parameter_dict['buildout-bin-directory'] -%}
3 [buildout]
4 parts =
5   publish-cloudooo-connection-information
6   cloudooo-instance
7   cloudooo-test-runner
8
9 eggs-directory = {{ eggs_directory }}
10 develop-eggs-directory = {{ develop_eggs_directory }}
11 offline = true
12
13 [publish-cloudooo-connection-information]
14 recipe = slapos.cookbook:publishurl
15 url = cloudooo://${cloudooo-instance:ip}:${cloudooo-instance:port}/
16
17 [cloudooo-instance]
18 recipe = slapos.cookbook:generic.cloudooo
19
20 # Network options
21 ip = ${slap-network-information:local-ipv4}
22 port = 23000
23 openoffice-port = 23060
24
25 # Paths
26 configuration-file = ${rootdirectory:etc}/cloudooo.cfg
27 wrapper = ${basedirectory:services}/cloudooo
28
29 # Paths: Data
30 data-directory = ${directory:cloudooo-data}
31
32 environment =
33   LD_LIBRARY_PATH = {{ parameter_dict['file'] }}/lib:{{ parameter_dict['fontconfig'] }}/lib:{{ parameter_dict['freetype'] }}/lib:{{ parameter_dict['libICE'] }}/lib:{{ parameter_dict['libpng12'] }}/lib:{{ parameter_dict['libSM'] }}/lib:{{ parameter_dict['libX11'] }}/lib:{{ parameter_dict['libXau'] }}/lib:{{ parameter_dict['libXdmcp'] }}/lib:{{ parameter_dict['libXext'] }}/lib:{{ parameter_dict['libxcb'] }}/lib:{{ parameter_dict['libXrender'] }}/lib:{{ parameter_dict['zlib'] }}/lib
34   FONTCONFIG_FILE = ${fontconfig-instance:conf-path}
35   PATH = ${binary-link:target-directory}
36
37 # Binary information
38 # cloudooo specific configuration
39 ooo-binary-path = {{ parameter_dict['libreoffice-bin'] }}/program
40 ooo-paster = {{ bin_directory }}/cloudooo_paster
41 ooo-uno-path = {{ parameter_dict['libreoffice-bin'] }}/basis-link/program
42
43 [cloudooo-test-runner]
44 recipe = slapos.cookbook:cloudooo.test
45
46 prepend-path = ${buildout:bin-directory}
47 run-unit-test = ${buildout:bin-directory}/runUnitTest
48 run-test-suite = ${buildout:bin-directory}/runTestSuite
49
50 ooo-paster = ${cloudooo-instance:ooo-paster}
51 configuration-file = ${cloudooo-instance:configuration-file}
52
53 run-unit-test-binary = {{ bin_directory }}/runCloudoooUnitTest
54 run-test-suite-binary = {{ bin_directory }}/runCloudoooTestSuite
55
56 [fontconfig-instance]
57 recipe = slapos.cookbook:fontconfig
58 conf-path = ${rootdirectory:etc}/font.conf
59 font-system-folder = {{ parameter_dict['fonts'] }}
60 font-folder = ${directory:font}
61 url-list = {{ json.get('font_url_list', []) | join(' ') }}
62 service-folder = ${basedirectory:services}
63 onetimedownload_path = {{ bin_directory }}/onetimedownload
64
65 [binary-link]
66 recipe = slapos.cookbook:symbolic.link
67 target-directory = ${rootdirectory:bin}
68 link-binary =
69   {{ parameter_dict['coreutils'] }}/bin/basename
70   {{ parameter_dict['coreutils'] }}/bin/cat
71   {{ parameter_dict['coreutils'] }}/bin/cp
72   {{ parameter_dict['coreutils'] }}/bin/ls
73   {{ parameter_dict['coreutils'] }}/bin/tr
74   {{ parameter_dict['coreutils'] }}/bin/uname
75   {{ parameter_dict['imagemagick'] }}/bin/convert
76   {{ parameter_dict['imagemagick'] }}/bin/identify
77   {{ parameter_dict['poppler'] }}/bin/pdfinfo
78   {{ parameter_dict['poppler'] }}/bin/pdftotext
79   {{ parameter_dict['poppler'] }}/bin/pdftohtml
80
81 # rest of parts are candidates for some generic stuff
82 [basedirectory]
83 recipe = slapos.cookbook:mkdirectory
84 services = ${rootdirectory:etc}/run
85
86 [directory]
87 recipe = slapos.cookbook:mkdirectory
88 cloudooo-data = ${rootdirectory:srv}/cloudooo
89 font = ${rootdirectory:srv}/font
90
91 [rootdirectory]
92 recipe = slapos.cookbook:mkdirectory
93 etc = ${buildout:directory}/etc
94 srv = ${buildout:directory}/srv
95 bin = ${buildout:directory}/bin