propellor spin

This commit is contained in:
Christine Dodrill 2015-08-14 22:27:47 -07:00
parent 83faee26cd
commit b4aeef68a9
1 changed files with 13 additions and 21 deletions

View File

@ -22,21 +22,9 @@ main = defaultMain hosts
-- Edit this to configure propellor! -- Edit this to configure propellor!
hosts :: [Host] hosts :: [Host]
hosts = hosts =
[ host "mybox.example.com" [ host "cadance"
& os (System (Debian Unstable) "amd64") & Docker.docked ircdContainer
& Apt.stdSourcesList
& Apt.unattendedUpgrades
& Apt.installed ["etckeeper"]
& Apt.installed ["ssh"]
& User.hasSomePassword (User "root")
& Network.ipv6to4
& File.dirExists "/var/www"
& Docker.docked webserverContainer
& Docker.garbageCollected `period` Daily
& Cron.runPropellor (Cron.Times "30 * * * *") & Cron.runPropellor (Cron.Times "30 * * * *")
-- add more hosts here...
--, host "foo.example.com" = ...
] ]
-- A generic webserver in a Docker container. -- A generic webserver in a Docker container.
@ -47,3 +35,7 @@ webserverContainer = Docker.container "webserver" (Docker.latestImage "debian")
& Docker.publish "80:80" & Docker.publish "80:80"
& Docker.volume "/var/www:/var/www" & Docker.volume "/var/www:/var/www"
& Apt.serviceInstalledRunning "apache2" & Apt.serviceInstalledRunning "apache2"
ircdContainer :: Docker.Container
ircdContainer = Docker.container "ircd-prop" (Docker.latestImage "xena/elemental-ircd")
& Docker.publish "4507:6667"