summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Libvirt.hs
diff options
context:
space:
mode:
authorSean Whitton2018-11-05 18:59:21 -0700
committerSean Whitton2018-11-05 18:59:21 -0700
commitf1a3fb8885b4a0ef9f0582055f5c74a06bb39fc4 (patch)
tree02376c4696759bed856ac481379adfdbb1e27f67 /src/Propellor/Property/Libvirt.hs
parent2e41cce6718a3c6f2f4cab0f8b3598c15944b778 (diff)
Libvirt.defaultNetworkAutostarted requires libvirt installed
Diffstat (limited to 'src/Propellor/Property/Libvirt.hs')
-rw-r--r--src/Propellor/Property/Libvirt.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Propellor/Property/Libvirt.hs b/src/Propellor/Property/Libvirt.hs
index 0f4c274c..053b60a6 100644
--- a/src/Propellor/Property/Libvirt.hs
+++ b/src/Propellor/Property/Libvirt.hs
@@ -24,6 +24,7 @@ installed = Apt.installed ["libvirt-clients", "virtinst"]
defaultNetworkAutostarted :: Property UnixLike
defaultNetworkAutostarted = check (not <$> doesFileExist autostartFile)
(cmdProperty "virsh" ["net-autostart", "default"])
+ `requires` installed
where
autostartFile = "/etc/libvirt/qemu/networks/autostart/default.xml"