summaryrefslogtreecommitdiffstats
path: root/share/config
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-10-13 09:41:49 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2018-05-27 05:59:31 +0000
commit017c8535589147158669479cbf1f02cd03dbc1e5 (patch)
treee311c3b6a5f8eb5bad5976e4d15f737e4ec1d533 /share/config
parentcontainer@.service (diff)
downloadcompute-tools-017c8535589147158669479cbf1f02cd03dbc1e5.tar.xz
compute-tools-017c8535589147158669479cbf1f02cd03dbc1e5.zip
FIXME
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share/config')
-rw-r--r--share/config/container.nspawn.in72
1 files changed, 60 insertions, 12 deletions
diff --git a/share/config/container.nspawn.in b/share/config/container.nspawn.in
index 322e2c9..a0c8227 100644
--- a/share/config/container.nspawn.in
+++ b/share/config/container.nspawn.in
@@ -1,23 +1,20 @@
# container-tools: @NAME@
-[start]
-cnt.auto=@CNT_AUTO@
-cnt.container-server=@CNT_CONTAINER_SERVER@
-cnt.network-bridge=@CNT_NETWORK_BRIDGE@
-cnt.overlay=@CNT_OVERLAY@
-bind=@BIND@
-bind-ro=@BIND_RO@
-boot=@BOOT@
-capability=@CAPABILITY@
-directory=@DIRECTORY@
-drop-capability=@DROP_CAPABILITY@
+[Exec]
+Boot=@BOOT@
+Capability=@CAPABILITY@
+Drop-capability=@DROP_CAPABILITY@
link-journal=@LINK_JOURNAL@
machine=@MACHINE@
network-veth-extra=@NETWORK_VETH_EXTRA@
private-users=@PRIVATE_USERS@
register=@REGISTER@
-[limit]
+[Files]
+bind=@BIND@
+bind-ro=@BIND_RO@
+
+
BlockIODeviceWeight=
BlockIOReadBandwidth=
BlockIOWeight=
@@ -26,3 +23,54 @@ CPUQuota=
CPUShares=
MemoryLimit=
TasksMax=
+
+[container-tools]
+cnt.auto=@CNT_AUTO@
+cnt.container-server=@CNT_CONTAINER_SERVER@
+cnt.network-bridge=@CNT_NETWORK_BRIDGE@
+cnt.overlay=@CNT_OVERLAY@
+
+
+@@ -1,23 +1,31 @@
+-# container-tools: @NAME@
++# systemd-nspawn @NAME@
+
+-[start]
++[Exec]
++Boot=@BOOT@
++Capability=@CAPABILITY@
++DropCapability=@DROP_CAPABILITY@
++PrivateUsers=@PRIVATE_USERS@
++
++[Files]
++Bind=@BIND@
++BindReadOnly=@BIND_RO@
++Overlay=@CNT_OVERLAY@
++
++[Network]
++VirtualEthernetExtra=
++
++# open-infrastructure-container-tools extension
++[ContainerToolsStart]
+ cnt.auto=@CNT_AUTO@
+ cnt.container-server=@CNT_CONTAINER_SERVER@
+ cnt.network-bridge=@CNT_NETWORK_BRIDGE@
+-cnt.overlay=@CNT_OVERLAY@
+-bind=@BIND@
+-bind-ro=@BIND_RO@
+-boot=@BOOT@
+-capability=@CAPABILITY@
+ directory=@DIRECTORY@
+-drop-capability=@DROP_CAPABILITY@
+ link-journal=@LINK_JOURNAL@
+ machine=@MACHINE@
+ network-veth-extra=@NETWORK_VETH_EXTRA@
+-private-users=@PRIVATE_USERS@
+ register=@REGISTER@
+
+-[limit]
++[ContainerToolsLimit]
+ BlockIODeviceWeight=
+ BlockIOReadBandwidth=
+ BlockIOWeight=
+