File: repo.pp

package info (click to toggle)
puppet-module-puppetlabs-rsync 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 228 kB
  • sloc: ruby: 634; sh: 15; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Class: rsync::repo
#
# This module creates a rsync repository
#
# Requires:
#   class rsync::server
#
class rsync::repo {

  include rsync::server

  $base = '/data/rsync'

  file { $base:
    ensure  => directory,
  }

  # setup default rsync repository
  rsync::server::module { 'repo':
    path    => $base,
    require => File[$base],
  }
}