summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Systemd.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Property/Systemd.hs')
-rw-r--r--src/Propellor/Property/Systemd.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Propellor/Property/Systemd.hs b/src/Propellor/Property/Systemd.hs
index eaf7df8b..94215593 100644
--- a/src/Propellor/Property/Systemd.hs
+++ b/src/Propellor/Property/Systemd.hs
@@ -188,19 +188,18 @@ machined = withOS "machined installed" $ \w o ->
-- add a property such as `osDebian` to specify the operating system
-- to bootstrap.
--
--- > container "webserver" (Chroot.debootstrapped mempty)
+-- > container "webserver" $ \d -> Chroot.debootstrapped mempty d $ props
-- > & osDebian Unstable "amd64"
-- > & Apt.installedRunning "apache2"
-- > & ...
container :: MachineName -> (FilePath -> Chroot.Chroot) -> Container
container name mkchroot =
- let c = Container name chroot h
+ let c = Container name chroot (host name (containerProps chroot))
in setContainerProps c $ containerProps c
&^ resolvConfed
&^ linkJournal
where
chroot = mkchroot (containerDir name)
- h = Host name [] mempty
-- | Runs a container using systemd-nspawn.
--