diff --git a/Propellor/Property/SiteSpecific/JoeySites.hs b/Propellor/Property/SiteSpecific/JoeySites.hs index fa8a4c6..74c47be 100644 --- a/Propellor/Property/SiteSpecific/JoeySites.hs +++ b/Propellor/Property/SiteSpecific/JoeySites.hs @@ -115,6 +115,16 @@ mumbleServer hosts = combineProperties "mumble.debian.net" , Apt.serviceInstalledRunning "mumble-server" ] +obnamLowMem :: Property +obnamLowMem = propertyList "obnam tuned for low memory use" + [ Obnam.latestVersion + , "/etc/obnam.conf" `File.containsLines` + [ "# Suggested by liw to keep Obnam memory consumption down (at some speed cost)." + , "upload-queue-size = 128" + , "lru-size = 128" + ] + ] + -- git.kitenet.net and git.joeyh.name gitServer :: [Host] -> Property gitServer hosts = propertyList "git.kitenet.net setup" diff --git a/config-joey.hs b/config-joey.hs index f0aaba5..e95e05d 100644 --- a/config-joey.hs +++ b/config-joey.hs @@ -100,6 +100,7 @@ hosts = -- (o) ` & Apt.unattendedUpgrades & Apt.serviceInstalledRunning "ntp" & Postfix.satellite + & JoeySites.obnamLowMem & Apt.serviceInstalledRunning "apache2" & File.hasPrivContent "/etc/ssl/certs/web.pem"