propellor spin

This commit is contained in:
Joey Hess 2015-05-22 11:03:17 -04:00
parent 9024342330
commit de07d0f720
Failed to extract signature
2 changed files with 8 additions and 0 deletions

View File

@ -364,6 +364,7 @@ iabak = host "iabak.archiveteam.org"
& IABak.gitServer monsters & IABak.gitServer monsters
& IABak.registrationServer monsters & IABak.registrationServer monsters
& IABak.graphiteServer & IABak.graphiteServer
& IABak.publicFace
where where
admins = map User ["joey", "db48x"] admins = map User ["joey", "db48x"]

View File

@ -15,6 +15,13 @@ repo = "https://github.com/ArchiveTeam/IA.BAK/"
userrepo :: String userrepo :: String
userrepo = "git@gitlab.com:archiveteam/IA.bak.users.git" 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 :: [Host] -> Property HasInfo
gitServer knownhosts = propertyList "iabak git server" $ props gitServer knownhosts = propertyList "iabak git server" $ props
& Git.cloned (User "root") repo "/usr/local/IA.BAK" (Just "server") & Git.cloned (User "root") repo "/usr/local/IA.BAK" (Just "server")