Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
67dd36e4
Commit
67dd36e4
authored
Sep 20, 2011
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support sphinx-searchd instantiation.
parent
fdcdb743
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
440 additions
and
1 deletion
+440
-1
slapos/recipe/erp5/__init__.py
slapos/recipe/erp5/__init__.py
+24
-0
slapos/recipe/erp5/template/sphinx.conf.in
slapos/recipe/erp5/template/sphinx.conf.in
+414
-0
software/erp5/instance.cfg
software/erp5/instance.cfg
+1
-0
software/erp5/software.cfg
software/erp5/software.cfg
+1
-1
No files found.
slapos/recipe/erp5/__init__.py
View file @
67dd36e4
...
@@ -123,6 +123,9 @@ class Recipe(BaseSlapRecipe):
...
@@ -123,6 +123,9 @@ class Recipe(BaseSlapRecipe):
))
))
if
key_access
is
not
None
:
if
key_access
is
not
None
:
connection_dict
[
'key_access'
]
=
key_access
connection_dict
[
'key_access'
]
=
key_access
if
self
.
options
.
get
(
'fulltext_search'
,
None
)
==
'sphinx'
:
sphinx_searchd
=
self
.
installSphinxSearchd
(
ip
=
self
.
getLocalIPv4Address
())
connection_dict
.
update
(
**
sphinx_searchd
)
self
.
setConnectionDict
(
connection_dict
)
self
.
setConnectionDict
(
connection_dict
)
return
self
.
path_list
return
self
.
path_list
...
@@ -431,6 +434,27 @@ SSLCARevocationPath %(ca_crl)s"""
...
@@ -431,6 +434,27 @@ SSLCARevocationPath %(ca_crl)s"""
memcached_ip
=
config
[
'memcached_ip'
],
memcached_ip
=
config
[
'memcached_ip'
],
memcached_port
=
config
[
'memcached_port'
])
memcached_port
=
config
[
'memcached_port'
])
def
installSphinxSearchd
(
self
,
ip
,
port
=
9312
,
sql_port
=
9306
):
data_directory
=
self
.
createDataDirectory
(
'sphinx'
)
sphinx_conf_path
=
self
.
createConfigurationFile
(
'sphinx.conf'
,
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'sphinx.conf.in'
),
dict
(
ip_address
=
ip
,
port
=
port
,
sql_port
=
sql_port
,
data_directory
=
data_directory
,
log_directory
=
self
.
log_directory
,
)))
self
.
path_list
.
append
(
sphinx_conf_path
)
wrapper
=
zc
.
buildout
.
easy_install
.
scripts
([(
'sphinx_searchd'
,
'slapos.recipe.librecipe.execute'
,
'execute'
)],
self
.
ws
,
sys
.
executable
,
self
.
wrapper_directory
,
arguments
=
[
self
.
options
[
'sphinx_searchd_binary'
].
strip
(),
'-c'
,
sphinx_conf_path
,
'--nodetach'
]
)[
0
]
self
.
path_list
.
append
(
wrapper
)
return
dict
(
sphinx_searchd_ip
=
ip
,
sphinx_searchd_port
=
port
,
sphinx_searchd_sql_port
=
sql_port
)
def
installTestRunner
(
self
,
ca_conf
,
mysql_conf
,
conversion_server_conf
,
def
installTestRunner
(
self
,
ca_conf
,
mysql_conf
,
conversion_server_conf
,
memcached_conf
,
kumo_conf
):
memcached_conf
,
kumo_conf
):
"""Installs bin/runUnitTest executable to run all tests using
"""Installs bin/runUnitTest executable to run all tests using
...
...
slapos/recipe/erp5/template/sphinx.conf.in
0 → 100644
View file @
67dd36e4
This diff is collapsed.
Click to expand it.
software/erp5/instance.cfg
View file @
67dd36e4
...
@@ -29,6 +29,7 @@ runTestSuite_binary = ${buildout:bin-directory}/runTestSuite
...
@@ -29,6 +29,7 @@ runTestSuite_binary = ${buildout:bin-directory}/runTestSuite
runUnitTest_binary = ${buildout:bin-directory}/runUnitTest
runUnitTest_binary = ${buildout:bin-directory}/runUnitTest
runzeo_binary = ${buildout:bin-directory}/runzeo
runzeo_binary = ${buildout:bin-directory}/runzeo
runzope_binary = ${buildout:bin-directory}/runzope
runzope_binary = ${buildout:bin-directory}/runzope
sphinx_searchd_binary = ${sphinx:location}/bin/searchd
tidstorage_repozo_binary = ${buildout:bin-directory}/tidstorage_repozo
tidstorage_repozo_binary = ${buildout:bin-directory}/tidstorage_repozo
tidstoraged_binary = ${buildout:bin-directory}/tidstoraged
tidstoraged_binary = ${buildout:bin-directory}/tidstoraged
xtrabackup_binary = ${xtrabackup:location}/bin/xtrabackup_51
xtrabackup_binary = ${xtrabackup:location}/bin/xtrabackup_51
...
...
software/erp5/software.cfg
View file @
67dd36e4
...
@@ -28,7 +28,7 @@ configurator_bt5_list = erp5_core_proxy_field_legacy erp5_full_text_myisam_catal
...
@@ -28,7 +28,7 @@ configurator_bt5_list = erp5_core_proxy_field_legacy erp5_full_text_myisam_catal
# Default template for erp5 instance.
# Default template for erp5 instance.
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
url = ${:_profile_base_location_}/instance.cfg
md5sum =
33aec5ae3f645689e746c8318557b569
md5sum =
53f225e13bf7ebcd88bbc2b038c83b6f
output = ${buildout:directory}/template.cfg
output = ${buildout:directory}/template.cfg
mode = 0644
mode = 0644
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment