diff --git a/config-joey.hs b/config-joey.hs index cf07dd9..2a17377 100644 --- a/config-joey.hs +++ b/config-joey.hs @@ -364,6 +364,7 @@ iabak = host "iabak.archiveteam.org" & IABak.gitServer monsters & IABak.registrationServer monsters & IABak.graphiteServer + & IABak.publicFace where admins = map User ["joey", "db48x"] diff --git a/src/Propellor/Property/SiteSpecific/IABak.hs b/src/Propellor/Property/SiteSpecific/IABak.hs index 650014f..fc56de8 100644 --- a/src/Propellor/Property/SiteSpecific/IABak.hs +++ b/src/Propellor/Property/SiteSpecific/IABak.hs @@ -15,6 +15,13 @@ repo = "https://github.com/ArchiveTeam/IA.BAK/" userrepo :: String userrepo = "git@gitlab.com:archiveteam/IA.bak.users.git" +publicFace :: Property HasInfo +publicFace = propertyList "iabak public face" $ props + & Git.cloned (User "root") repo "/usr/local/IA.BAK" (Just "server") + & Apt.serviceInstalledRunning "apache2" + & Cron.niceJob "graph-gen" (Cron.Times "*/10 * * * *") (User "root") "/" + "/usr/local/IA.BAK/web/graph-gen.sh" + gitServer :: [Host] -> Property HasInfo gitServer knownhosts = propertyList "iabak git server" $ props & Git.cloned (User "root") repo "/usr/local/IA.BAK" (Just "server")