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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kwabena Antwi-Boasiako
slapos
Commits
c1eed248
Commit
c1eed248
authored
Feb 08, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fetch config from self.config .
mysql_conf is only to be used to render a template.
parent
2a1d3325
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
slapos/recipe/generic_mysql/__init__.py
slapos/recipe/generic_mysql/__init__.py
+7
-13
No files found.
slapos/recipe/generic_mysql/__init__.py
View file @
c1eed248
...
@@ -49,12 +49,6 @@ class Recipe(GenericBaseRecipe):
...
@@ -49,12 +49,6 @@ class Recipe(GenericBaseRecipe):
socket
=
self
.
options
[
'socket'
],
socket
=
self
.
options
[
'socket'
],
error_log
=
self
.
options
[
'error-log'
],
error_log
=
self
.
options
[
'error-log'
],
slow_query_log
=
self
.
options
[
'slow-query-log'
],
slow_query_log
=
self
.
options
[
'slow-query-log'
],
mysql_database
=
self
.
options
[
'database'
],
mysql_user
=
self
.
options
[
'user'
],
mysql_password
=
self
.
options
[
'password'
],
mysql_test_database
=
self
.
options
[
'test-database'
],
mysql_test_user
=
self
.
options
[
'test-user'
],
mysql_test_password
=
self
.
options
[
'test-password'
],
)
)
mysql_binary
=
self
.
options
[
'mysql-binary'
]
mysql_binary
=
self
.
options
[
'mysql-binary'
]
...
@@ -78,18 +72,18 @@ class Recipe(GenericBaseRecipe):
...
@@ -78,18 +72,18 @@ class Recipe(GenericBaseRecipe):
mysql_script_list
.
append
(
self
.
substituteTemplate
(
mysql_script_list
.
append
(
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'initmysql.sql.in'
),
self
.
getTemplateFilename
(
'initmysql.sql.in'
),
{
{
'mysql_database'
:
mysql_conf
[
'mysql_
database'
],
'mysql_database'
:
self
.
options
[
'
database'
],
'mysql_user'
:
mysql_conf
[
'mysql_
user'
],
'mysql_user'
:
self
.
options
[
'
user'
],
'mysql_password'
:
mysql_conf
[
'mysql_
password'
]
'mysql_password'
:
self
.
options
[
'
password'
]
}
}
))
))
# default test database
# default test database
mysql_script_list
.
append
(
self
.
substituteTemplate
(
mysql_script_list
.
append
(
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'initmysql.sql.in'
),
self
.
getTemplateFilename
(
'initmysql.sql.in'
),
{
{
'mysql_database'
:
mysql_conf
[
'mysql_test_
database'
],
'mysql_database'
:
self
.
options
[
'test-
database'
],
'mysql_user'
:
mysql_conf
[
'mysql_test_
user'
],
'mysql_user'
:
self
.
options
[
'test-
user'
],
'mysql_password'
:
mysql_conf
[
'mysql_test_
password'
]
'mysql_password'
:
self
.
options
[
'test-
password'
]
}
}
))
))
# parallel test databases
# parallel test databases
...
@@ -125,7 +119,7 @@ class Recipe(GenericBaseRecipe):
...
@@ -125,7 +119,7 @@ class Recipe(GenericBaseRecipe):
[
dict
(
[
dict
(
mysql_install_binary
=
self
.
options
[
'mysql-install-binary'
],
mysql_install_binary
=
self
.
options
[
'mysql-install-binary'
],
mysqld_binary
=
mysqld_binary
,
mysqld_binary
=
mysqld_binary
,
data_directory
=
mysql_conf
[
'data_
directory'
],
data_directory
=
self
.
options
[
'data-
directory'
],
mysql_binary
=
mysql_binary
,
mysql_binary
=
mysql_binary
,
socket
=
socket
,
socket
=
socket
,
configuration_file
=
mysql_conf_file
,
configuration_file
=
mysql_conf_file
,
...
...
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