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
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
Tatuya Kamada
slapos
Commits
80292a63
Commit
80292a63
authored
Aug 06, 2012
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update lxc software release to new recipes
parent
d1e1a328
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
15 deletions
+57
-15
software/lxc/instance-lxc.cfg
software/lxc/instance-lxc.cfg
+23
-14
software/lxc/lxc.conf.in
software/lxc/lxc.conf.in
+25
-0
software/lxc/software.cfg
software/lxc/software.cfg
+9
-1
No files found.
software/lxc/instance-lxc.cfg
View file @
80292a63
...
...
@@ -5,8 +5,9 @@ develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
parts =
slapcontainer
rootfs
uuid
lxc-conf
[rootdirectory]
recipe = slapos.cookbook:mkdirectory
...
...
@@ -18,19 +19,27 @@ srv = $${buildout:directory}/srv
recipe = slapos.cookbook:mkdirectory
services = $${rootdirectory:etc}/run
[slapcontainer]
recipe = slapos.cookbook:slapcontainer
interface = $${slap-network-information:network-interface}
config = $${buildout:directory}/.slapcontainer
lxc-config = $${rootdirectory:etc}/lxc.conf
image = $${rootfs:downloaded-image}
image-complete = $${rootfs:downloaded-image-complete}
tmp-dir = $${rootdirectory:tmp}/slapcontainer/
[rootfs]
recipe = slapos.cookbook:rootfs
image-url = $${slap-parameter:rootfs}
downloaded-image = $${rootdirectory:srv}/rootfs.img
downloaded-image-complete = $${:downloaded-image}.complete
recipe = slapos.cookbook:downloader
url = $${slap-parameter:rootfs}
md5sum = $${slap-parameter:rootfs-md5sum}
downloaded-file = $${rootdirectory:srv}/rootfs.img
downloaded-file-complete = $${:downloaded-file}.complete
binary = $${basedirectory:services}/rootfsdownload
wget-binary = ${wget:location}/bin/wget
[lxc-conf]
recipe = slapos.cookbook:template
template = ${lxc-conf-in:location}/${lxc-conf-in:filename}
output = $${rootdirectory:etc}/lxc.conf
bridge =
interface = lxc$${slap-network-information:network-interface}
name = $${uuid:uuid}
rootfs = $${rootfs:downloaded-file}
[uuid]
recipe = slapos.cookbook:uuid
cache-file = $${buildout:directory}/.slapcontainername
[slap-parameter]
rootfs-md5sum =
software/lxc/lxc.conf.in
0 → 100644
View file @
80292a63
lxc.utsname = %(name)s
lxc.network.type = veth
lxc.network.link = %(bridge)s
lxc.network.veth.pair = %(interface)s
lxc.network.name = eth0
lxc.network.flags = up
lxc.tty = 4
lxc.pts = 1024
lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
lxc.cgroup.devices.allow = c 254:0 rwm
lxc.rootfs = %(rootfs)s
software/lxc/software.cfg
View file @
80292a63
...
...
@@ -14,6 +14,7 @@ parts =
lxml-python
template
template-lxc
lxc-conf-in
slapos-cookbook
slapos-toolbox
lxc
...
...
@@ -28,10 +29,17 @@ mode = 0644
[template-lxc]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-lxc.cfg
md5sum =
d8e6bdee05b602c63de821c2f92a660f
md5sum =
24eadd1159b95040648abfec4c5f332e
output = ${buildout:directory}/template-lxc.cfg
mode = 0644
[lxc-conf-in]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
filename = lxc.conf.in
download-only = true
md5sum = e9e6b23609a522d55ef44fb8efd87b44
[slapos-toolbox]
recipe = zc.recipe.egg
scripts = slapcontainer
...
...
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