/[adm]/puppet/modules/subversion/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/subversion/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 83 by misc, Thu Nov 4 14:59:38 2010 UTC revision 95 by misc, Thu Nov 4 17:14:35 2010 UTC
# Line 37  class subversion { Line 37  class subversion {
37    
38      # TODO ensure that subversion ishere      # TODO ensure that subversion ishere
39      #      allow to configure the snapshot refresh interval      #      allow to configure the snapshot refresh interval
40      define snapshot($source, $refresh, $user = 'root')  {      define snapshot($source, $refresh = '*/5', $user = 'root')  {
41          exec { "/usr/bin/svn co $source $name":          exec { "/usr/bin/svn co $source $name":
42              creates => $name,                        creates => $name,          
43              user => $user,                user => $user,  
# Line 46  class subversion { Line 46  class subversion {
46          cron { "update $name":          cron { "update $name":
47             command => "cd $name && /usr/bin/svn update -q",             command => "cd $name && /usr/bin/svn update -q",
48             user => $user,             user => $user,
49             minute => '*/5'             minute => $refresh
50          }            }  
51      }      }
52  }  }

Legend:
Removed from v.83  
changed lines
  Added in v.95

  ViewVC Help
Powered by ViewVC 1.1.30