summaryrefslogtreecommitdiff
path: root/config-simple.hs
diff options
context:
space:
mode:
Diffstat (limited to 'config-simple.hs')
-rw-r--r--config-simple.hs31
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.