summaryrefslogtreecommitdiff
path: root/config-simple.hs
diff options
context:
space:
mode:
authorJoey Hess2016-03-25 16:20:32 -0400
committerJoey Hess2016-03-25 16:20:32 -0400
commitf01776d64b1b8fcf89903d0de1ffe27f10d620ee (patch)
treecb7ef68ab23aa43e8a7ed7b428ef57f0b356921f /config-simple.hs
parent6b9f3158df63e18b32b7175205ef686badc3bc1b (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.hs12
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"