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
61a08fa3
Commit
61a08fa3
authored
16 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
ganeti.bootstrap: Generate SSL certificate for remote API
Reviewed-by: amishchenko
parent
40a97d80
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/bootstrap.py
+4
-0
4 additions, 0 deletions
lib/bootstrap.py
lib/constants.py
+1
-0
1 addition, 0 deletions
lib/constants.py
with
5 additions
and
0 deletions
lib/bootstrap.py
+
4
−
0
View file @
61a08fa3
...
@@ -96,6 +96,10 @@ def _InitGanetiServerSetup():
...
@@ -96,6 +96,10 @@ def _InitGanetiServerSetup():
"""
"""
_GenerateSelfSignedSslCert
(
constants
.
SSL_CERT_FILE
)
_GenerateSelfSignedSslCert
(
constants
.
SSL_CERT_FILE
)
# Don't overwrite existing file
if
not
os
.
path
.
exists
(
constants
.
RAPI_CERT_FILE
):
_GenerateSelfSignedSslCert
(
constants
.
RAPI_CERT_FILE
)
result
=
utils
.
RunCmd
([
constants
.
NODE_INITD_SCRIPT
,
"
restart
"
])
result
=
utils
.
RunCmd
([
constants
.
NODE_INITD_SCRIPT
,
"
restart
"
])
if
result
.
failed
:
if
result
.
failed
:
...
...
This diff is collapsed.
Click to expand it.
lib/constants.py
+
1
−
0
View file @
61a08fa3
...
@@ -94,6 +94,7 @@ LOCK_DIR = _autoconf.LOCALSTATEDIR + "/lock"
...
@@ -94,6 +94,7 @@ LOCK_DIR = _autoconf.LOCALSTATEDIR + "/lock"
SSCONF_LOCK_FILE
=
LOCK_DIR
+
"
/ganeti-ssconf.lock
"
SSCONF_LOCK_FILE
=
LOCK_DIR
+
"
/ganeti-ssconf.lock
"
CLUSTER_CONF_FILE
=
DATA_DIR
+
"
/config.data
"
CLUSTER_CONF_FILE
=
DATA_DIR
+
"
/config.data
"
SSL_CERT_FILE
=
DATA_DIR
+
"
/server.pem
"
SSL_CERT_FILE
=
DATA_DIR
+
"
/server.pem
"
RAPI_CERT_FILE
=
DATA_DIR
+
"
/rapi.pem
"
WATCHER_STATEFILE
=
DATA_DIR
+
"
/watcher.data
"
WATCHER_STATEFILE
=
DATA_DIR
+
"
/watcher.data
"
SSH_KNOWN_HOSTS_FILE
=
DATA_DIR
+
"
/known_hosts
"
SSH_KNOWN_HOSTS_FILE
=
DATA_DIR
+
"
/known_hosts
"
RAPI_USERS_FILE
=
DATA_DIR
+
"
/rapi_users
"
RAPI_USERS_FILE
=
DATA_DIR
+
"
/rapi_users
"
...
...
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