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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
slapos
Commits
5ccdf82e
Commit
5ccdf82e
authored
Jul 23, 2012
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add interface information for slapcontainer script
parent
100f13a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
slapos/recipe/container.py
slapos/recipe/container.py
+1
-0
software/lxc/instance-lxc.cfg
software/lxc/instance-lxc.cfg
+1
-0
software/lxc/software.cfg
software/lxc/software.cfg
+1
-1
No files found.
slapos/recipe/container.py
View file @
5ccdf82e
...
@@ -49,6 +49,7 @@ class Recipe(GenericSlapRecipe):
...
@@ -49,6 +49,7 @@ class Recipe(GenericSlapRecipe):
config
.
add_section
(
'information'
)
config
.
add_section
(
'information'
)
config
.
set
(
'information'
,
'ipv6'
,
self
.
options
[
'ipv6'
])
config
.
set
(
'information'
,
'ipv6'
,
self
.
options
[
'ipv6'
])
config
.
set
(
'information'
,
'ipv4'
,
self
.
options
[
'ipv4'
])
config
.
set
(
'information'
,
'ipv4'
,
self
.
options
[
'ipv4'
])
config
.
set
(
'information'
,
'interface'
,
self
.
options
[
'interface'
])
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
:
...
...
software/lxc/instance-lxc.cfg
View file @
5ccdf82e
...
@@ -20,4 +20,5 @@ promises = $${rootdirectory:etc}/promise
...
@@ -20,4 +20,5 @@ promises = $${rootdirectory:etc}/promise
recipe = slapos.cookbook:slapcontainer
recipe = slapos.cookbook:slapcontainer
ipv4 = $${slap-network-information:local-ipv4}
ipv4 = $${slap-network-information:local-ipv4}
ipv6 = $${slap-network-information:global-ipv6}
ipv6 = $${slap-network-information:global-ipv6}
interface = $${slap-network-information:network-interface}
config = $${buildout:directory}/.slapcontainer
config = $${buildout:directory}/.slapcontainer
software/lxc/software.cfg
View file @
5ccdf82e
...
@@ -23,7 +23,7 @@ mode = 0644
...
@@ -23,7 +23,7 @@ mode = 0644
[template-lxc]
[template-lxc]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-lxc.cfg
url = ${:_profile_base_location_}/instance-lxc.cfg
md5sum =
f4087b91cd9fe15ea7e4768f6331652a
md5sum =
2636ea339ad6f47756b4a026b14bb056
output = ${buildout:directory}/template-lxc.cfg
output = ${buildout:directory}/template-lxc.cfg
mode = 0644
mode = 0644
...
...
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