diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-10-16 14:31:02 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-10-16 14:31:02 -0400 |
| commit | 511a8bf38f0c4dcf7081e06a76fe733fdb1a260e (patch) | |
| tree | ef6c6341396473b4b73cd3d834712bae5fb7d542 | |
| parent | 6bc38b1fbd63c2ca9512adc16ba52e4426796653 (diff) | |
| parent | 7d9b164ce552c7737a0d85308548c18b3f72bf7d (diff) | |
Merge branch 'joeyconfig'
| -rw-r--r-- | config-simple.hs | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/config-simple.hs b/config-simple.hs index 67c06120..0bc08def 100644 --- a/config-simple.hs +++ b/config-simple.hs @@ -18,24 +18,25 @@ main :: IO () main = defaultMain hosts -- The hosts propellor knows about. --- 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 * * * *") + [ mybox + ] - -- add more hosts here... - --, host "foo.example.com" = ... +-- An example host. +mybox :: Host +mybox = 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 * * * *") ] -- A generic webserver in a Docker container. |
