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
Jean-Paul Smets
slapos
Commits
13859ffe
Commit
13859ffe
authored
Feb 08, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inline mysql_conf now that there is a single user of this variable.
parent
c1eed248
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
slapos/recipe/generic_mysql/__init__.py
slapos/recipe/generic_mysql/__init__.py
+10
-11
No files found.
slapos/recipe/generic_mysql/__init__.py
View file @
13859ffe
...
@@ -41,22 +41,21 @@ class Recipe(GenericBaseRecipe):
...
@@ -41,22 +41,21 @@ class Recipe(GenericBaseRecipe):
template_filename
=
self
.
getTemplateFilename
(
'my.cnf.in'
)
template_filename
=
self
.
getTemplateFilename
(
'my.cnf.in'
)
mysql_conf
=
dict
(
ip
=
self
.
options
[
'ip'
],
data_directory
=
self
.
options
[
'data-directory'
],
tcp_port
=
self
.
options
[
'port'
],
pid_file
=
self
.
options
[
'pid-file'
],
socket
=
self
.
options
[
'socket'
],
error_log
=
self
.
options
[
'error-log'
],
slow_query_log
=
self
.
options
[
'slow-query-log'
],
)
mysql_binary
=
self
.
options
[
'mysql-binary'
]
mysql_binary
=
self
.
options
[
'mysql-binary'
]
socket
=
self
.
options
[
'socket'
]
socket
=
self
.
options
[
'socket'
]
mysql_conf_file
=
self
.
createFile
(
mysql_conf_file
=
self
.
createFile
(
self
.
options
[
'conf-file'
],
self
.
options
[
'conf-file'
],
self
.
substituteTemplate
(
template_filename
,
mysql_conf
)
self
.
substituteTemplate
(
template_filename
,
{
# TODO: drop ip & port
'ip'
:
self
.
options
[
'ip'
],
'tcp_port'
:
self
.
options
[
'port'
],
'data_directory'
:
self
.
options
[
'data-directory'
],
'pid_file'
:
self
.
options
[
'pid-file'
],
'socket'
:
self
.
options
[
'socket'
],
'error_log'
:
self
.
options
[
'error-log'
],
'slow_query_log'
:
self
.
options
[
'slow-query-log'
],
})
)
)
path_list
.
append
(
mysql_conf_file
)
path_list
.
append
(
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