@Sam This is the sample cronjob for the podlings data extraction.
The podlings.xml file does not change frequently so an hourly extraction should be plenty. ---------- Forwarded message ---------- From: <[email protected]> Date: 20 August 2016 at 22:31 Subject: infrastructure-puppet commit [sebb-20160820]: Add cronjob for podlings as JSON To: [email protected] Repository: infrastructure-puppet Updated Branches: refs/heads/sebb-20160820 [created] 3a38ca283 Add cronjob for podlings as JSON Project: http://git-wip-us.apache.org/repos/asf/infrastructure-puppet/repo Commit: http://git-wip-us.apache.org/repos/asf/infrastructure-puppet/commit/3a38ca28 Tree: http://git-wip-us.apache.org/repos/asf/infrastructure-puppet/tree/3a38ca28 Diff: http://git-wip-us.apache.org/repos/asf/infrastructure-puppet/diff/3a38ca28 Branch: refs/heads/sebb-20160820 Commit: 3a38ca2835b236ccec49a483d4968e48a505ecc9 Parents: fb4f687 Author: Sebb <[email protected]> Authored: Sat Aug 20 22:31:43 2016 +0100 Committer: Sebb <[email protected]> Committed: Sat Aug 20 22:31:43 2016 +0100 ---------------------------------------------------------------------- modules/whimsy_server/manifests/cronjobs.pp | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/infrastructure-puppet/blob/3a38ca28/modules/whimsy_server/manifests/cronjobs.pp ---------------------------------------------------------------------- diff --git a/modules/whimsy_server/manifests/cronjobs.pp b/modules/whimsy_server/manifests/cronjobs.pp index b65a895..38f16c1 100644 --- a/modules/whimsy_server/manifests/cronjobs.pp +++ b/modules/whimsy_server/manifests/cronjobs.pp @@ -86,6 +86,13 @@ class whimsy_server::cronjobs ( minute => 40 } + cron { 'public_podlings': + ensure => present, + command => "(cd /srv/whimsy/www; ${ruby} roster/public_podlings.rb public/public_podling_status.json public/public_podlings.json > logs/public-podlings 2>&1)", + user => $apache::user, + minute => 45 + } + cron { 'board_minutes': ensure => present, command => "(cd /srv/whimsy/tools; ${ruby} collate_minutes.rb > ../www/logs/collate_minutes 2>&1)",
