From f30637ead1f87c06bbf2ee66a55e8d709b09e18b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 20 Oct 2010 14:04:24 -0200 Subject: Adding git-mass-update-server-info --- manifests/gitosis.pp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'manifests') diff --git a/manifests/gitosis.pp b/manifests/gitosis.pp index ebe0c2a..853ca7e 100644 --- a/manifests/gitosis.pp +++ b/manifests/gitosis.pp @@ -64,4 +64,23 @@ class gitosis inherits git { backup => false, require => User["gitosis"], } + + # mass update script + file { "/usr/local/sbin/git-mass-update-server-info": + ensure => present, + owner => root, + group => root, + mode => 0755, + source => "puppet:///files/git/git-mass-update-server-info", + } + + # mass update hourly + cron { "/usr/local/sbin/git-mass-update-server-info": + command => "/usr/local/sbin/git-mass-update-server-info &> /dev/null", + user => root, + hour => "*/1", + minute => "20", + ensure => present, + require => File['/usr/local/sbin/git-mass-update-server-info'], + } } -- cgit v1.2.3