aboutsummaryrefslogtreecommitdiffstats
path: root/modules/subversion/manifests/mirror_repository.pp
blob: 1e0fabd399cee3ab8133acda11422bf25f8904c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
define subversion::mirror_repository( $source,
                                      $refresh = '*/5') {
    include subversion::mirror

    exec { "/usr/local/bin/create_svn_mirror.sh ${name} ${source}":
        creates => $name,
        require => Package['subversion-tools']
    }

    cron { "update ${name}":
        command => "/usr/bin/svnsync synchronize -q file://${name}",
        minute  => $refresh,
        require => Exec["/usr/local/bin/create_svn_mirror.sh ${name} ${source}"],
    }
}