Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
slapos
Commits
8be6809b
Commit
8be6809b
authored
12 years ago
by
Vincent Pelletier
Browse files
Options
Download
Email Patches
Plain Diff
Add recipes to just wrap mysql.* functions.
parent
d9111e7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
setup.py
setup.py
+2
-0
slapos/recipe/generic_mysql/__init__.py
slapos/recipe/generic_mysql/__init__.py
+31
-0
No files found.
setup.py
View file @
8be6809b
...
...
@@ -79,6 +79,8 @@ setup(name=name,
'generic.kumofs = slapos.recipe.generic_kumofs:Recipe'
,
'generic.memcached = slapos.recipe.generic_memcached:Recipe'
,
'generic.mysql = slapos.recipe.generic_mysql:Recipe'
,
'generic.mysql.wrap_update_mysql = slapos.recipe.generic_mysql:WrapUpdateMySQL'
,
'generic.mysql.wrap_mysqld = slapos.recipe.generic_mysql:WrapMySQLd'
,
'generic.varnish = slapos.recipe.generic_varnish:Recipe'
,
'generic.zope = slapos.recipe.generic_zope:Recipe'
,
'generic.zope.zeo.client = slapos.recipe.generic_zope_zeo_client:Recipe'
,
...
...
This diff is collapsed.
Click to expand it.
slapos/recipe/generic_mysql/__init__.py
View file @
8be6809b
...
...
@@ -210,3 +210,34 @@ class Recipe(GenericBaseRecipe):
path_list
.
append
(
pt_exe
)
return
path_list
class
WrapUpdateMySQL
(
GenericBaseRecipe
):
def
install
(
self
):
return
[
self
.
createPythonScript
(
self
.
options
[
'output'
],
__name__
+
'.mysql.updateMysql'
,
[{
'mysql_upgrade_binary'
:
self
.
options
[
'binary'
],
'mysql_binary'
:
self
.
options
[
'mysql'
],
'socket'
:
self
.
options
[
'socket'
],
'mysql_script_file'
:
self
.
options
[
'init-script'
],
}]
),
]
class
WrapMySQLd
(
GenericBaseRecipe
):
def
install
(
self
):
return
[
self
.
createPythonScript
(
self
.
options
[
'output'
],
__name__
+
'.mysql.runMysql'
,
[{
'mysqld_binary'
:
self
.
options
[
'binary'
],
'configuration_file'
:
self
.
options
[
'configuration-file'
],
'data_directory'
:
self
.
options
[
'data-directory'
],
'mysql_install_binary'
:
self
.
options
[
'mysql-install-binary'
],
'mysql_base_directory'
:
self
.
options
[
'mysql-base-directory'
],
}]
),
]
This diff is collapsed.
Click to expand it.
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