module Propellor.Property.HostingProvider.DigitalOcean (
distroKernel
) where
import Propellor.Base
import qualified Propellor.Property.Apt as Apt
import qualified Propellor.Property.File as File
import qualified Propellor.Property.Reboot as Reboot
distroKernel :: Property DebianLike
distroKernel = propertyList "digital ocean distro kernel hack" $ props
& Apt.installed ["grub-pc", "kexec-tools", "file"]
& "/etc/default/kexec" `File.containsLines`
[ "LOAD_KEXEC=true"
, "USE_GRUB_CONFIG=true"
] `describe` "kexec configured"
& Reboot.toDistroKernel