Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
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
Guillaume Hervier
slapos-caddy
Commits
55aa3450
Commit
55aa3450
authored
Jul 25, 2012
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring of slapcontainer configuration
parent
b0e483a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
slapos/recipe/container.py
slapos/recipe/container.py
+12
-4
No files found.
slapos/recipe/container.py
View file @
55aa3450
...
@@ -46,10 +46,18 @@ class Recipe(GenericSlapRecipe):
...
@@ -46,10 +46,18 @@ class Recipe(GenericSlapRecipe):
config
.
add_section
(
'requested'
)
config
.
add_section
(
'requested'
)
config
.
set
(
'requested'
,
'status'
,
config
.
set
(
'requested'
,
'status'
,
self
.
computer_partition
.
getState
())
self
.
computer_partition
.
getState
())
config
.
add_section
(
'information'
)
config
.
add_section
(
'network'
)
config
.
set
(
'information'
,
'ipv6'
,
self
.
options
[
'ipv6'
])
config
.
set
(
'network'
,
'ipv6'
,
self
.
options
[
'ipv6'
])
config
.
set
(
'information'
,
'ipv4'
,
self
.
options
[
'ipv4'
])
config
.
set
(
'network'
,
'ipv4'
,
self
.
options
[
'ipv4'
])
config
.
set
(
'information'
,
'interface'
,
self
.
options
[
'interface'
])
config
.
set
(
'network'
,
'interface'
,
self
.
options
[
'interface'
])
config
.
add_section
(
'rootfs'
)
config
.
set
(
'rootfs'
,
'directory'
,
self
.
options
[
'rootfs'
])
config
.
set
(
'rootfs'
,
'tmp'
,
self
.
options
[
'tmp-dir'
])
config
.
add_section
(
'config'
)
config
.
set
(
'config'
,
'file'
,
self
.
options
[
'config-file'
])
config
.
add_section
(
'tar'
)
config
.
set
(
'tar'
,
'binary'
,
self
.
options
[
'tar-binary'
])
config
.
set
(
'tar'
,
'path'
,
self
.
options
[
'tar-path'
])
config_filename
=
self
.
options
[
'config'
]
config_filename
=
self
.
options
[
'config'
]
with
open
(
config_filename
,
'w'
)
as
config_file
:
with
open
(
config_filename
,
'w'
)
as
config_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