Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-image-creator
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-image-creator
Commits
09743d3a
Commit
09743d3a
authored
13 years ago
by
Nikos Skalkotos
Browse files
Options
Downloads
Patches
Plain Diff
Add image properties help file
parent
279f2c7d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
image_creator/dialog_main.py
+7
-4
7 additions, 4 deletions
image_creator/dialog_main.py
image_creator/help/image_properties.rst
+32
-0
32 additions, 0 deletions
image_creator/help/image_properties.rst
with
39 additions
and
4 deletions
image_creator/dialog_main.py
+
7
−
4
View file @
09743d3a
...
@@ -316,9 +316,8 @@ def register_image(session):
...
@@ -316,9 +316,8 @@ def register_image(session):
return
False
return
False
if
"
upload
"
not
in
session
:
if
"
upload
"
not
in
session
:
d
.
msgbox
(
"
You need to have an image uploaded to pithos+ before you
"
d
.
msgbox
(
"
You need to upload the image to pithos+ before you can
"
"
can register it to cyclades
"
,
"
register it to cyclades
"
,
width
=
MSGBOX_WIDTH
)
width
=
MSGBOX_WIDTH
)
return
False
return
False
while
1
:
while
1
:
...
@@ -362,7 +361,7 @@ def kamaki_menu(session):
...
@@ -362,7 +361,7 @@ def kamaki_menu(session):
choices
=
[(
"
Account
"
,
"
Change your ~okeanos username: %s
"
%
account
),
choices
=
[(
"
Account
"
,
"
Change your ~okeanos username: %s
"
%
account
),
(
"
Token
"
,
"
Change your ~okeanos token: %s
"
%
token
),
(
"
Token
"
,
"
Change your ~okeanos token: %s
"
%
token
),
(
"
Upload
"
,
"
Upload image to pithos+
"
),
(
"
Upload
"
,
"
Upload image to pithos+
"
),
(
"
Register
"
,
"
Register image to cyclades: %s
"
%
upload
)]
(
"
Register
"
,
"
Register
the
image to cyclades: %s
"
%
upload
)]
(
code
,
choice
)
=
d
.
menu
(
(
code
,
choice
)
=
d
.
menu
(
text
=
"
Choose one of the following or press <Back> to go back.
"
,
text
=
"
Choose one of the following or press <Back> to go back.
"
,
...
@@ -480,6 +479,10 @@ def modify_properties(session):
...
@@ -480,6 +479,10 @@ def modify_properties(session):
# ADD button
# ADD button
elif
code
==
d
.
DIALOG_EXTRA
:
elif
code
==
d
.
DIALOG_EXTRA
:
add_property
(
session
)
add_property
(
session
)
elif
code
==
'
help
'
:
help_file
=
get_help_file
(
"
image_properties
"
)
assert
os
.
path
.
exists
(
help_file
)
d
.
textbox
(
help_file
,
title
=
"
Image Properties
"
,
width
=
70
,
height
=
40
)
def
delete_properties
(
session
):
def
delete_properties
(
session
):
...
...
This diff is collapsed.
Click to expand it.
image_creator/help/image_properties.rst
0 → 100644
+
32
−
0
View file @
09743d3a
Image properties with special meaning
=====================================
Properties used during image deployment
---------------------------------------
- OSFAMILY={linux, windows}
This specifies whether this is a Linux or a Windows image.
- ROOT_PARTITION=n
The partition number of the root partition.
- USERS="username1 username2..."
This is a space-seperated list of users, whose password will
be reset during deployment.
- SWAP=<n>:<size>
If this property is present, cyclades will create a swap
partition with given size at the end of the instance's disk.
This property only makes sense for Linux images.
Properties used by the ~okeanos User Interface
----------------------------------------------
- OS
The value of this property is used to associate the image
with an Operating System Logo.
- DESCRIPTION
A short description about the image.
- SIZE
This is used by the UI to compute the image copy progress
during deployment.
- GUI
Short description about the Graphical User Interface the
image hosts.
- KERNEL
The kernel version of the image OS.
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