Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
17dfc522
Commit
17dfc522
authored
17 years ago
by
Manuel Franceschini
Browse files
Options
Downloads
Patches
Plain Diff
Add SS_FILE_STORAGE_DIR to ssconf
Author: manuel.franceschini Reviewed-by: iustinp
parent
1abbbbe2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/ssconf.py
+8
-1
8 additions, 1 deletion
lib/ssconf.py
with
8 additions
and
1 deletion
lib/ssconf.py
+
8
−
1
View file @
17dfc522
...
...
@@ -59,8 +59,9 @@ class SimpleStore:
SS_MASTER_IP
=
"
master_ip
"
SS_MASTER_NETDEV
=
"
master_netdev
"
SS_CLUSTER_NAME
=
"
cluster_name
"
SS_FILE_STORAGE_DIR
=
"
file_storage_dir
"
_VALID_KEYS
=
(
SS_HYPERVISOR
,
SS_NODED_PASS
,
SS_MASTER_NODE
,
SS_MASTER_IP
,
SS_MASTER_NETDEV
,
SS_CLUSTER_NAME
)
SS_MASTER_NETDEV
,
SS_CLUSTER_NAME
,
SS_FILE_STORAGE_DIR
)
_MAX_SIZE
=
4096
def
__init__
(
self
,
cfg_location
=
None
):
...
...
@@ -155,6 +156,12 @@ class SimpleStore:
"""
return
self
.
_ReadFile
(
self
.
SS_CLUSTER_NAME
)
def
GetFileStorageDir
(
self
):
"""
Get the file storage dir.
"""
return
self
.
_ReadFile
(
self
.
SS_FILE_STORAGE_DIR
)
def
SetKey
(
self
,
key
,
value
):
"""
Set the value of a key.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment