propellor spin
This commit is contained in:
parent
83faee26cd
commit
b4aeef68a9
|
@ -22,28 +22,20 @@ main = defaultMain hosts
|
|||
-- Edit this to configure propellor!
|
||||
hosts :: [Host]
|
||||
hosts =
|
||||
[ host "mybox.example.com"
|
||||
& os (System (Debian Unstable) "amd64")
|
||||
& 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 * * * *")
|
||||
|
||||
-- add more hosts here...
|
||||
--, host "foo.example.com" = ...
|
||||
]
|
||||
[ host "cadance"
|
||||
& Docker.docked ircdContainer
|
||||
& 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"
|
||||
& 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"
|
||||
|
|
Loading…
Reference in New Issue