diff options
| author | Joey Hess <joeyh@joeyh.name> | 2016-03-25 16:20:32 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2016-03-25 16:20:32 -0400 |
| commit | f01776d64b1b8fcf89903d0de1ffe27f10d620ee (patch) | |
| tree | cb7ef68ab23aa43e8a7ed7b428ef57f0b356921f /config-simple.hs | |
| parent | 6b9f3158df63e18b32b7175205ef686badc3bc1b (diff) | |
rename toProp to toChildProperties
and note that it's not meant to be used by regular users
Diffstat (limited to 'config-simple.hs')
| -rw-r--r-- | config-simple.hs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/config-simple.hs b/config-simple.hs index 28b38409..da1580c6 100644 --- a/config-simple.hs +++ b/config-simple.hs @@ -12,7 +12,6 @@ import Propellor.Property.Scheduled import qualified Propellor.Property.User as User --import qualified Propellor.Property.Hostname as Hostname --import qualified Propellor.Property.Tor as Tor -import qualified Propellor.Property.Docker as Docker main :: IO () main = defaultMain hosts @@ -34,15 +33,4 @@ mybox = host "mybox.example.com" $ props & User.hasSomePassword (User "root") & Network.ipv6to4 & File.dirExists "/var/www" - & Docker.docked webserverContainer - & Docker.garbageCollected `period` Daily & Cron.runPropellor (Cron.Times "30 * * * *") - --- A generic webserver in a Docker container. -webserverContainer :: Docker.Container -webserverContainer = Docker.container "webserver" (Docker.latestImage "debian") $ props - & os (System (Debian (Stable "jessie")) "amd64") - & Apt.stdSourcesList - & Docker.publish "80:80" - & Docker.volume "/var/www:/var/www" - & Apt.serviceInstalledRunning "apache2" |
