summaryrefslogtreecommitdiff
path: root/global/overlay/etc
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2015-09-28 12:33:33 +0200
committerLeif Johansson <leifj@sunet.se>2015-09-28 12:33:33 +0200
commit492ef952aa8446bdc99c36ad6dad82f0ee83c12a (patch)
treed80377f566f7a7a2cab346d7969653ee836a3cca /global/overlay/etc
parent9104153e4799eb415ddcc6711afa84b42b0fca56 (diff)
update static data every 5 minutessunet-ops-2015-09-28-v03
Diffstat (limited to 'global/overlay/etc')
-rw-r--r--global/overlay/etc/puppet/manifests/cosmos-site.pp10
1 files changed, 10 insertions, 0 deletions
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'],