instance-lxc.cfg 1.69 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 11
    rootfs
    publish
    slapcontainer-promise
Antoine Catton's avatar
Antoine Catton committed
12 13 14 15

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

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

[slapcontainer]
recipe = slapos.cookbook:slapcontainer
ipv4 = $${slap-network-information:local-ipv4}
ipv6 = $${slap-network-information:global-ipv6}
27
interface = $${slap-network-information:network-interface}
Antoine Catton's avatar
Antoine Catton committed
28
config = $${buildout:directory}/.slapcontainer
29 30
lxc-config = $${buildout:directory}/config
archive = $${rootfs:downloaded-archive}
Antoine Catton's avatar
Antoine Catton committed
31
archive-complete = $${rootfs:downloaded-archive-complete}
32 33
tmp-dir = $${rootdirectory:tmp}/slapcontainer/
config-file = $${buildout:directory}/config
Antoine Catton's avatar
Antoine Catton committed
34
rootfs = $${buildout:directory}/rootfs
35 36 37
tar-binary = ${tar:location}/bin/tar
tar-path = ${tar:location}/bin:${gzip:location}/bin:${bzip2:location}/bin:${xz-utils:location}/bin

Antoine Catton's avatar
Antoine Catton committed
38 39 40 41 42 43 44
[slapcontainer-promise]
recipe = slapos.cookbook:slapcontainer.promise
promise = $${basedirectory:promises}/slapcontainer
lxc-info = ${lxc:location}/bin/lxc-info
slapcontainer-name = $${slapcontainer:slapcontainer-name}


45 46 47 48
[rootfs]
recipe = slapos.cookbook:rootfs
archive-url = $${slap-parameter:rootfs}
downloaded-archive = $${rootdirectory:tmp}/rootfs.tar.gz
Antoine Catton's avatar
Antoine Catton committed
49
downloaded-archive-complete = $${rootdirectory:tmp}/rootfs.ok
50 51
binary = $${basedirectory:services}/rootfsdownload
wget-binary = ${wget:location}/bin/wget
Antoine Catton's avatar
Antoine Catton committed
52 53 54 55

[publish]
recipe = slapos.cookbook:publish
ip = $${slap-network-information:global-ipv6}