Merge branch 'erp5' into erp5-generic
[slapos.git] / software / erp5 / instance-sphinx.cfg
1 [buildout]
2 parts =
3   publish-sphinx-url
4   sphinxd-instance
5
6 eggs-directory = ${buildout:eggs-directory}
7 develop-eggs-directory = ${buildout:develop-eggs-directory}
8 offline = true
9
10 [publish-sphinx-url]
11 recipe = slapos.cookbook:publish
12 url-sphinx = sphinx://$${sphinxd-instance:ip}:$${sphinxd-instance:sphinx-port}
13 url-sphinx-sql = mysql://$${sphinxd-instance:ip}:$${sphinxd-instance:sql-port}
14
15 [sphinxd-instance]
16 recipe = slapos.cookbook:sphinx
17 data-directory = $${directory:sphinx-data}
18 configuration-file = $${rootdirectory:etc}/sphinx.conf
19 searchd-log = $${basedirectory:log}/sphinx-searchd.log
20 query-log = $${basedirectory:log}/sphinx-query.log
21 pid = $${basedirectory:run}/sphinx-searchd.pid
22 ip = $${slap-network-information:local-ipv4}
23 sphinx-port = 9312
24 sql-port = 9306
25 wrapper = $${basedirectory:services}/sphinxd
26 sphinx-searchd-binary = ${sphinx:location}/bin/searchd
27
28 [rootdirectory]
29 recipe = slapos.cookbook:mkdirectory
30 etc = $${buildout:directory}/etc
31 var = $${buildout:directory}/var
32 srv = $${buildout:directory}/srv
33 bin = $${buildout:directory}/bin
34
35 [basedirectory]
36 recipe = slapos.cookbook:mkdirectory
37 log = $${rootdirectory:var}/log
38 services = $${rootdirectory:etc}/run
39 run = $${rootdirectory:var}/run
40
41 [directory]
42 recipe = slapos.cookbook:mkdirectory
43 sphinx-data = $${rootdirectory:srv}/sphinx