From 514bc70c393d3bc55fa1f6b56cecf131da3607eb Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 12 Feb 2015 12:40:52 -0400 Subject: [PATCH] update for cron change --- config-simple.hs | 2 +- doc/centralized_git_repository.mdwn | 2 +- doc/haskell_newbie.mdwn | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config-simple.hs b/config-simple.hs index 95c2fe1..9900d6b 100644 --- a/config-simple.hs +++ b/config-simple.hs @@ -33,7 +33,7 @@ hosts = & File.dirExists "/var/www" & Docker.docked webserverContainer & Docker.garbageCollected `period` Daily - & Cron.runPropellor "30 * * * *" + & Cron.runPropellor (Cron.Times "30 * * * *") -- add more hosts here... --, host "foo.example.com" = ... diff --git a/doc/centralized_git_repository.mdwn b/doc/centralized_git_repository.mdwn index 6cfc139..1e51139 100644 --- a/doc/centralized_git_repository.mdwn +++ b/doc/centralized_git_repository.mdwn @@ -22,7 +22,7 @@ You can add a central git repository to your existing propellor setup easily: `cd ~/.propellor/; git remote add deploy git://git.example.com/propellor.git` 2. Add a property to your hosts like: - `Cron.runPropellor "*/30 * * * *"` + `Cron.runPropellor (Cron.Times "*/30 * * * *")` 3. Let your hosts know about the changed configuration (including the url to the central repository), by running `propellor --spin $HOST` for each diff --git a/doc/haskell_newbie.mdwn b/doc/haskell_newbie.mdwn index f1a81e4..e62ffea 100644 --- a/doc/haskell_newbie.mdwn +++ b/doc/haskell_newbie.mdwn @@ -66,7 +66,7 @@ Some other properties you may find in your config.hs, or want to add: & Apt.unattendedUpgrades & User.hasSomePassword "root" & "/etc/default/foodaemon" `File.containsLine` "ENABLED=yes" - & Cron.runPropellor "30 * * * *" + & Cron.runPropellor (Cron.Times "30 * * * *") """]] Some of these properties can be reverted -- this makes Propellor undo whatever