diff options
| author | Joey Hess <joey@kitenet.net> | 2014-04-10 17:46:03 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-04-10 17:46:03 -0400 |
| commit | 2372d6a3f8193145662e393aa61b585d8bafd32d (patch) | |
| tree | 1738d2d20b28a7abd3e9aa5e292ab3fef4b7db12 /config-simple.hs | |
| parent | 25942fb0cca0ca90933026bf959506e099ff95a4 (diff) | |
use HostAttr to simplify config file
Diffstat (limited to 'config-simple.hs')
| -rw-r--r-- | config-simple.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config-simple.hs b/config-simple.hs index 6784f76c..8011e97e 100644 --- a/config-simple.hs +++ b/config-simple.hs @@ -25,7 +25,7 @@ main = defaultMain [host, Docker.containerProperties container] -- -- Edit this to configure propellor! host :: HostName -> Maybe [Property] -host hostname@"mybox.example.com" = Just $ props +host "mybox.example.com" = Just $ props & Apt.stdSourcesList Unstable `onChange` Apt.upgrade & Apt.unattendedUpgrades @@ -34,7 +34,7 @@ host hostname@"mybox.example.com" = Just $ props & User.hasSomePassword "root" & Network.ipv6to4 & File.dirExists "/var/www" - & Docker.docked container hostname "webserver" + & Docker.docked container "webserver" & Docker.garbageCollected `period` Daily & Cron.runPropellor "30 * * * *" -- add more hosts here... |
