propellor spin

This commit is contained in:
Christine Dodrill 2015-08-15 00:06:54 -07:00
parent e1f7b534f6
commit 1db2d44534
No known key found for this signature in database
GPG Key ID: E9037B677CE55004
1 changed files with 9 additions and 15 deletions

View File

@ -22,20 +22,14 @@ main = defaultMain hosts
-- Edit this to configure propellor!
hosts :: [Host]
hosts =
[ host "cadance"
& Docker.docked ircdContainer
[ host "hermit"
& os (System (Debian (Stable "jessie")) "amd64")
& Apt.stdSourcesList
& Apt.installed ["ssh"]
& Cron.runPropellor (Cron.Times "30 * * * *")
, host "empress"
& os (System (Ubuntu "trusty") "amd64")
& Apt.stdSourcesList
& Apt.installed ["ssh"]
& Cron.runPropellor (Cron.Times "30 * * * *")
]
-- A generic webserver in a Docker container.
webserverContainer :: Docker.Container
webserverContainer = Docker.container "webserver" (Docker.latestImage "debian")
& os (System (Debian (Stable "jessie")) "amd64")
& Apt.stdSourcesList
& Docker.publish "80:80"
& Docker.volume "/var/www:/var/www"
& Apt.serviceInstalledRunning "apache2"
ircdContainer :: Docker.Container
ircdContainer = Docker.container "ircd-prop" (Docker.latestImage "xena/elemental-ircd")
& Docker.publish "4507:6667"