instance-lxc.cfg 1.29 KB
Newer Older
Antoine Catton's avatar
Antoine Catton committed
1 2 3 4 5 6 7 8
[buildout]

eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true

parts =
    slapcontainer
Antoine Catton's avatar
Antoine Catton committed
9 10
    rootfs
    slapcontainer-promise
Antoine Catton's avatar
Antoine Catton committed
11 12 13 14

[rootdirectory]
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc
15
tmp = $${buildout:directory}/tmp
Antoine Catton's avatar
Antoine Catton committed
16
srv = $${buildout:directory}/srv
Antoine Catton's avatar
Antoine Catton committed
17 18 19 20 21 22 23 24

[basedirectory]
recipe = slapos.cookbook:mkdirectory
services = $${rootdirectory:etc}/run
promises = $${rootdirectory:etc}/promise

[slapcontainer]
recipe = slapos.cookbook:slapcontainer
25
interface = $${slap-network-information:network-interface}
Antoine Catton's avatar
Antoine Catton committed
26
config = $${buildout:directory}/.slapcontainer
Antoine Catton's avatar
Antoine Catton committed
27 28 29
lxc-config = $${rootdirectory:etc}/lxc.conf
image = $${rootfs:downloaded-image}
image-complete = $${rootfs:downloaded-image-complete}
30 31
tmp-dir = $${rootdirectory:tmp}/slapcontainer/

Antoine Catton's avatar
Antoine Catton committed
32 33 34 35 36 37
[slapcontainer-promise]
recipe = slapos.cookbook:slapcontainer.promise
promise = $${basedirectory:promises}/slapcontainer
lxc-info = ${lxc:location}/bin/lxc-info
slapcontainer-name = $${slapcontainer:slapcontainer-name}

38 39
[rootfs]
recipe = slapos.cookbook:rootfs
Antoine Catton's avatar
Antoine Catton committed
40 41 42
image-url = $${slap-parameter:rootfs}
downloaded-image = $${rootdirectory:srv}/rootfs.img
downloaded-image-complete = $${:downloaded-image}.complete
43 44
binary = $${basedirectory:services}/rootfsdownload
wget-binary = ${wget:location}/bin/wget