aboutsummaryrefslogtreecommitdiff
path: root/manifests/file.pp
blob: ec67f2c14fa21812e95c4e9c93fbe161ab4067cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Define: tftp::file
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Usage:
#
define tftp::file (
  $ensure       = file,
  $recurse      = false,
  $owner        = 'tftp',
  $group        = 'tftp',
  $mode         = '0644',
  $purge        = undef,
  $replace      = undef,
  $recurselimit = undef,
  $content      = undef,
  $source       = undef
) {
  include 'tftp'

  file { "${tftp::directory}/${name}":
    ensure       => $ensure,
    recurse      => $recurse,
    owner        => $owner,
    group        => $group,
    mode         => $mode,
    purge        => $purge,
    replace      => $replace,
    recurselimit => $recurselimit,
    content      => $content,
    source       => $source,
    require      => Class['tftp'],
  }
}