propellor spin
This commit is contained in:
parent
fa66cb49d6
commit
a37e0a6bc3
|
@ -25,6 +25,7 @@ import qualified Propellor.Property.Grub as Grub
|
|||
import qualified Propellor.Property.Obnam as Obnam
|
||||
import qualified Propellor.Property.Gpg as Gpg
|
||||
import qualified Propellor.Property.Systemd as Systemd
|
||||
import qualified Propellor.Property.Systemd.Journald as Journald
|
||||
import qualified Propellor.Property.OS as OS
|
||||
import qualified Propellor.Property.HostingProvider.DigitalOcean as DigitalOcean
|
||||
import qualified Propellor.Property.HostingProvider.CloudAtCost as CloudAtCost
|
||||
|
@ -145,7 +146,7 @@ kite = standardSystemUnhardened "kite.kitenet.net" Testing "amd64"
|
|||
& Apt.unattendedUpgrades
|
||||
& Systemd.installed
|
||||
& Systemd.persistentJournal
|
||||
& Systemd.journaldConfigured "SystemMaxUse" "500M"
|
||||
& Journald.systemMaxUse "500MiB"
|
||||
& Ssh.passwordAuthentication True
|
||||
-- Since ssh password authentication is allowed:
|
||||
& Apt.serviceInstalledRunning "fail2ban"
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
module Propellor.Property.Systemd.Journald where
|
||||
import Propellor
|
||||
import qualified Propellor.Property.Systemd as Systemd
|
||||
import qualified Propellor.Property.File as File
|
||||
import Utility.DataUnits
|
||||
|
||||
-- | Configures journald, restarting it so the changes take effect.
|
||||
|
@ -39,7 +38,7 @@ runtimeMaxFileSize = configuredSize "RuntimeMaxFileSize"
|
|||
|
||||
-- Generates size units as used in journald.conf.
|
||||
systemdSizeUnits :: Integer -> String
|
||||
systemdSizeUnits n = filter (/= ' ') (roughSize cfgfileunits True n)
|
||||
systemdSizeUnits sz = filter (/= ' ') (roughSize cfgfileunits True sz)
|
||||
where
|
||||
cfgfileunits :: [Unit]
|
||||
cfgfileunits =
|
||||
|
|
Loading…
Reference in New Issue