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
Eteri
slapos
Commits
1ff77212
Commit
1ff77212
authored
Oct 12, 2011
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add draft of IP binding, add TODOs
parent
9ba75a39
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
slapos/recipe/cubrid/__init__.py
slapos/recipe/cubrid/__init__.py
+7
-0
slapos/recipe/cubrid/template/access_file.txt.in
slapos/recipe/cubrid/template/access_file.txt.in
+5
-0
slapos/recipe/cubrid/template/cubrid_broker.conf.in
slapos/recipe/cubrid/template/cubrid_broker.conf.in
+4
-1
slapos/recipe/cubrid/template/iplist.txt.in
slapos/recipe/cubrid/template/iplist.txt.in
+1
-0
No files found.
slapos/recipe/cubrid/__init__.py
View file @
1ff77212
...
@@ -79,6 +79,10 @@ class Recipe(BaseSlapRecipe):
...
@@ -79,6 +79,10 @@ class Recipe(BaseSlapRecipe):
manager_port
=
1523
,
database
=
'cubrid_slapos_db'
):
manager_port
=
1523
,
database
=
'cubrid_slapos_db'
):
# XXX-Cedric : use work from Antoine to have backuped + generic cubrid
# XXX-Cedric : use work from Antoine to have backuped + generic cubrid
# XXX-Cedric : Check that running this recipe does not erase database
# XXX-Cedric : Check that running this recipe does not erase database
# XXX-Cedric : Check manager status
# XXX-Cedric : Check master status
# XXX-Cedric : restrict everything by user/password
# XXX-Cedric : IPv6?
config_dict
=
{}
config_dict
=
{}
config_dict
.
update
(
self
.
options
)
config_dict
.
update
(
self
.
options
)
config_dict
.
update
(
self
.
parameter_dict
)
config_dict
.
update
(
self
.
parameter_dict
)
...
@@ -115,6 +119,9 @@ class Recipe(BaseSlapRecipe):
...
@@ -115,6 +119,9 @@ class Recipe(BaseSlapRecipe):
self
.
_createSimlink
(
cubrid_broker_configuration_path
,
self
.
_createSimlink
(
cubrid_broker_configuration_path
,
os
.
path
.
join
(
cubrid_conf_directory
,
'cubrid_broker.conf'
))
os
.
path
.
join
(
cubrid_conf_directory
,
'cubrid_broker.conf'
))
# XXX-Cedric : Finish IP binding http://www.cubrid.org/manual/840/en/Broker%20Server%20Access%20Limitation
# Add access_file.txt.in, iplist.txt.in
# Files needed to fill database for demo
# Files needed to fill database for demo
demodb_schema_template_path
=
self
.
getTemplateFilename
(
'demodb_schema'
)
demodb_schema_template_path
=
self
.
getTemplateFilename
(
'demodb_schema'
)
self
.
_writeFile
(
os
.
path
.
join
(
cubrid_home_path
,
'demodb_schema'
),
self
.
_writeFile
(
os
.
path
.
join
(
cubrid_home_path
,
'demodb_schema'
),
...
...
slapos/recipe/cubrid/template/access_file.txt.in
0 → 100644
View file @
1ff77212
[%%QUERY_EDITOR]
*:*:iplist.txt
[%%BROKER1]
*:*:iplist.txt
\ No newline at end of file
slapos/recipe/cubrid/template/cubrid_broker.conf.in
View file @
1ff77212
...
@@ -14,6 +14,8 @@ SQL_LOG =ON
...
@@ -14,6 +14,8 @@ SQL_LOG =ON
TIME_TO_KILL =120
TIME_TO_KILL =120
SESSION_TIMEOUT =300
SESSION_TIMEOUT =300
KEEP_CONNECTION =AUTO
KEEP_CONNECTION =AUTO
ACCESS_ CONTROL =ON
ACCESS_CONTROL_FILE =%(cubrid_home)s/access_file.txt
[%%BROKER1]
[%%BROKER1]
SERVICE =ON
SERVICE =ON
...
@@ -27,4 +29,5 @@ SQL_LOG =ON
...
@@ -27,4 +29,5 @@ SQL_LOG =ON
TIME_TO_KILL =120
TIME_TO_KILL =120
SESSION_TIMEOUT =300
SESSION_TIMEOUT =300
KEEP_CONNECTION =AUTO
KEEP_CONNECTION =AUTO
ACCESS_ CONTROL =ON
ACCESS_CONTROL_FILE =%(cubrid_home)s/access_file.txt
slapos/recipe/cubrid/template/iplist.txt.in
0 → 100644
View file @
1ff77212
%(private_ip)s
\ No newline at end of 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