/[adm]/puppet/modules/git/manifests/snapshot.pp
ViewVC logotype

Diff of /puppet/modules/git/manifests/snapshot.pp

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

revision 3424 by boklm, Sat Jul 6 16:54:06 2013 UTC revision 3425 by colin, Sun Mar 23 16:19:35 2014 UTC
# Line 1  Line 1 
1  define git::snapshot( $source,  define git::snapshot( $source,
2                        $refresh = '*/5',                        $refresh = '*/5',
3                        $user = 'root') {                        $user = 'root',
4                          $branch = 'master') {
5      include git::client      include git::client
6      #TODO      #TODO
7      # should handle branch -> clone -n + branch + checkout      # should handle branch -> clone -n + branch + checkout
# Line 8  define git::snapshot( $source, Line 9  define git::snapshot( $source,
9      # Idealy, should be handled by vcsrepo      # Idealy, should be handled by vcsrepo
10      # https://github.com/bruce/puppet-vcsrepo      # https://github.com/bruce/puppet-vcsrepo
11      # once it is merged in puppet      # once it is merged in puppet
12      exec { "/usr/bin/git clone $source $name":      exec { "/usr/bin/git clone -b $branch $source $name":
13          creates => $name,          creates => $name,
14          user    => $user          user    => $user
15      }      }

Legend:
Removed from v.3424  
changed lines
  Added in v.3425

  ViewVC Help
Powered by ViewVC 1.1.28