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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tom Niget
slapos
Commits
9022551e
Commit
9022551e
authored
Sep 11, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos.cookbook: drop zeo recipe
parent
4d971eaa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
116 deletions
+0
-116
setup.py
setup.py
+0
-1
slapos/recipe/zeo/__init__.py
slapos/recipe/zeo/__init__.py
+0
-97
slapos/recipe/zeo/template/zeo-filestorage-snippet.conf.in
slapos/recipe/zeo/template/zeo-filestorage-snippet.conf.in
+0
-4
slapos/recipe/zeo/template/zeo.conf.in
slapos/recipe/zeo/template/zeo.conf.in
+0
-14
No files found.
setup.py
View file @
9022551e
...
@@ -165,7 +165,6 @@ setup(name=name,
...
@@ -165,7 +165,6 @@ setup(name=name,
'userinfo = slapos.recipe.userinfo:Recipe'
,
'userinfo = slapos.recipe.userinfo:Recipe'
,
'wrapper = slapos.recipe.wrapper:Recipe'
,
'wrapper = slapos.recipe.wrapper:Recipe'
,
'zabbixagent = slapos.recipe.zabbixagent:Recipe'
,
'zabbixagent = slapos.recipe.zabbixagent:Recipe'
,
'zeo = slapos.recipe.zeo:Recipe'
,
'zero-knowledge.read = slapos.recipe.zero_knowledge:ReadRecipe'
,
'zero-knowledge.read = slapos.recipe.zero_knowledge:ReadRecipe'
,
'zero-knowledge.write = slapos.recipe.zero_knowledge:WriteRecipe'
'zero-knowledge.write = slapos.recipe.zero_knowledge:WriteRecipe'
],
],
...
...
slapos/recipe/zeo/__init__.py
deleted
100644 → 0
View file @
4d971eaa
##############################################################################
#
# Copyright (c) 2011 Vifib SARL and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
from
slapos.recipe.librecipe
import
GenericBaseRecipe
import
os
class
Recipe
(
GenericBaseRecipe
):
"""
ZEO instance configuration.
wrapper-path -- location of the init script to generate
binary-path -- location of the runzeo command
ip -- ip of the zeo server
port -- port of the zeo server
log-path -- location of the log file
pid-path -- location of the pid file
conf-path -- location of the configuration file
zodb-path -- location of the zodb directory (which contains all storage)
storage -- string with list of all resquested storage
Example: event_module person_module
"""
def
install
(
self
):
snippet_filename
=
self
.
getTemplateFilename
(
'zeo-filestorage-snippet.conf.in'
)
# Prepare all filestorages
filestorage_snippet
=
""
storage
=
self
.
options
[
'storage'
]
if
isinstance
(
storage
,
str
):
for
storage_definition
in
storage
.
splitlines
():
storage_definition
=
storage_definition
.
strip
()
if
not
storage_definition
:
continue
for
q
in
storage_definition
.
split
():
if
'storage-name'
in
q
:
storage_name
=
q
.
split
(
'='
)[
1
].
strip
()
if
'zodb-path'
in
q
:
zodb_path
=
q
.
split
(
'='
)[
1
].
strip
()
filestorage_snippet
+=
self
.
substituteTemplate
(
snippet_filename
,
dict
(
storage_name
=
storage_name
,
path
=
zodb_path
))
else
:
for
storage_name
,
path
in
storage
:
filestorage_snippet
+=
self
.
substituteTemplate
(
snippet_filename
,
{
'storage_name'
:
storage_name
,
'path'
:
path
})
config
=
dict
(
zeo_ip
=
self
.
options
[
'ip'
],
zeo_port
=
self
.
options
[
'port'
],
zeo_event_log
=
self
.
options
[
'log-path'
],
zeo_pid
=
self
.
options
[
'pid-path'
],
zeo_filestorage_snippet
=
filestorage_snippet
,
)
# Create configuration file
template_filename
=
self
.
getTemplateFilename
(
'zeo.conf.in'
)
configuration_path
=
self
.
createFile
(
self
.
options
[
'conf-path'
],
self
.
substituteTemplate
(
template_filename
,
config
))
# Create running wrapper
wrapper_path
=
self
.
createWrapper
(
self
.
options
[
'wrapper-path'
],
(
self
.
options
[
'binary-path'
].
strip
(),
'-C'
,
self
.
options
[
'conf-path'
]))
return
[
configuration_path
,
wrapper_path
]
slapos/recipe/zeo/template/zeo-filestorage-snippet.conf.in
deleted
100644 → 0
View file @
4d971eaa
<filestorage %(storage_name)s>
path %(path)s
# pack-gc false
</filestorage>
slapos/recipe/zeo/template/zeo.conf.in
deleted
100644 → 0
View file @
4d971eaa
# ZEO configuration file generated by SlapOS
<zeo>
address %(zeo_ip)s:%(zeo_port)s
pid-filename %(zeo_pid)s
</zeo>
%(zeo_filestorage_snippet)s
<eventlog>
<logfile>
dateformat
path %(zeo_event_log)s
</logfile>
</eventlog>
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