From 492ef952aa8446bdc99c36ad6dad82f0ee83c12a Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 28 Sep 2015 12:33:33 +0200 Subject: update static data every 5 minutes --- global/overlay/etc/puppet/manifests/cosmos-site.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'global/overlay/etc') diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index 4d84c3f..2f72cea 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -933,6 +933,11 @@ node 'web-a1.sunet.se' { provider => git, source => 'git://github.com/SUNET/static_sunet_se.git' } -> + cron {'update-static': + command => "cd /data/static_sunet_se && git pull -q", + user => root, + minute => '*/5' + } -> sunet::docker_run {'static_sunet_se': image => 'docker.sunet.se/static-cors', ports => ['8002:80'], @@ -952,6 +957,11 @@ node 'web-a2.sunet.se' { provider => git, source => 'git://github.com/SUNET/static_sunet_se.git' } -> + cron {'update-static': + command => "cd /data/static_sunet_se && git pull -q", + user => root, + minute => '*/5' + } -> sunet::docker_run {'static_sunet_se': image => 'docker.sunet.se/static-cors', ports => ['8002:80'], -- cgit v1.1